Sananaz (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/trunk-bug-721868-sma into 
lp:openobject-client-web.

Requested reviews:
  OpenERP SA's Web Client R&D (openerp-dev-web)
Related bugs:
  Bug #721868 in OpenERP Web Client: "[Trunk] search - default values are not 
used"
  https://bugs.launchpad.net/openobject-client-web/+bug/721868

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/trunk-bug-721868-sma/+merge/52978

Hello,

- install crm_helpdesk 
- Then login with demo user
- It open Helpdesk Requests view with default value at Responsible (Problem is 
not set default)

Thanks.

-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/trunk-bug-721868-sma/+merge/52978
Your team OpenERP SA's Web Client R&D is requested to review the proposed merge 
of lp:~openerp-dev/openobject-client-web/trunk-bug-721868-sma into 
lp:openobject-client-web.
=== modified file 'addons/openerp/controllers/actions.py'
--- addons/openerp/controllers/actions.py	2011-02-21 16:47:25 +0000
+++ addons/openerp/controllers/actions.py	2011-03-11 07:49:28 +0000
@@ -385,8 +385,8 @@
         #XXX: in gtk client just returns to the caller
         #raise common.error('Error', 'Invalid action...')
         return;
-
-    data.setdefault('context', {}).update(expr_eval(action.get('context') or action.get('form_context', '{}'), data.get('context', {})))
+    ctx = dict(rpc.get_session().context, **(data.get('context') or {}))
+    data.setdefault('context', {}).update(expr_eval(action.get('context') or action.get('form_context', '{}'), ctx))
 
     action_executor = ACTIONS_BY_TYPE[action['type']]
     return action_executor(action, data)

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help   : https://help.launchpad.net/ListHelp

Reply via email to