clearcorp team mailing list archive
-
clearcorp team
-
Mailing list archive
-
Message #00388
lp:~rr.clearcorp/openerp-ccorp-addons/6.1-base_toolbar_custom_actions into lp:openerp-ccorp-addons
Ronald Rubi has proposed merging lp:~rr.clearcorp/openerp-ccorp-addons/6.1-base_toolbar_custom_actions into lp:openerp-ccorp-addons.
Requested reviews:
CLEARCORP drivers (clearcorp-drivers)
For more details, see:
https://code.launchpad.net/~rr.clearcorp/openerp-ccorp-addons/6.1-base_toolbar_custom_actions/+merge/136804
Delete prints in base_toolbar_custom_actions.py
--
https://code.launchpad.net/~rr.clearcorp/openerp-ccorp-addons/6.1-base_toolbar_custom_actions/+merge/136804
Your team CLEARCORP development team is subscribed to branch lp:openerp-ccorp-addons.
=== modified file 'base_toolbar_custom_actions/base_toolbar_custom_actions.py'
--- base_toolbar_custom_actions/base_toolbar_custom_actions.py 2012-06-07 19:17:56 +0000
+++ base_toolbar_custom_actions/base_toolbar_custom_actions.py 2012-11-28 21:59:17 +0000
@@ -22,8 +22,6 @@
import osv
import copy
-import pprint
-pp = pprint.PrettyPrinter(indent=4).pprint
from openerp.osv.orm import BaseModel
#First copy the orginal method to avoid recursion
@@ -33,8 +31,6 @@
def fields_view_get2 (self, cr, user, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
#Call to the original method to keep the upstream code running and avoid outdates of this module
result = fields_view_get_original(self, cr, user, view_id, view_type, context, toolbar, submenu)
- pp (context)
- pp (result)
#Check if there is a toolbar key in both dicts: the result and the context
if "toolbar" in result and "toolbar" in context:
toolbar = result["toolbar"]
@@ -60,10 +56,6 @@
#Remove not listed items in domain
if not relate["res_model"] in toolbar_context["relate"]:
toolbar["relate"].remove(relate)
- print "New result"
- pp (result)
- else:
- print "no toolbar"
return result
#Replacement of the method in the original class
Follow ups