← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-client/trunk-bug-728862-nch into lp:openobject-client

 

Naresh(OpenERP) has proposed merging lp:~openerp-dev/openobject-client/trunk-bug-728862-nch into lp:openobject-client.

Requested reviews:
  OpenERP sa GTK client R&D (openerp-dev-gtk)
Related bugs:
  #728862 Sale: Opening invoice from history tab on sale order form and then open journal entry
  https://bugs.launchpad.net/bugs/728862

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/trunk-bug-728862-nch/+merge/52517

Hello,

The branch contains the fix for the lp bug:728862


Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-client/trunk-bug-728862-nch/+merge/52517
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-client/trunk-bug-728862-nch.
=== modified file 'bin/widget/model/field.py'
--- bin/widget/model/field.py	2011-02-14 11:00:02 +0000
+++ bin/widget/model/field.py	2011-03-08 06:26:58 +0000
@@ -72,11 +72,12 @@
     def context_get(self, model, check_load=True, eval=True):
         context = {}
         context.update(self.parent.context)
+        exclude_ctx = ['set_editable','set_visible','form_view_ref', 'group_by']
         # removing default keys,group_by,search_default of the parent context
         context_own = context.copy()
         for c in context.items():
-            if c[0].startswith('default_') or c[0] in ('set_editable','set_visible')\
-             or c[0] == 'group_by' or c[0].startswith('search_default_'):
+            if c[0].startswith('default_') or c[0] in exclude_ctx\
+                or c[0].startswith('search_default_'):
                 del context_own[c[0]]
 
         field_context_str = self.attrs.get('context', '{}') or '{}'


Follow ups