summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-01-28 14:06:40 +0100
committerXavier Morel <xmo@openerp.com>2013-01-28 14:06:40 +0100
commitb87102f22eac494a2bba1deab811ba0e20906ba7 (patch)
tree1a4b678c346b07da6133346b595a49db7a08f01a /addons/analytic_user_function
parentb7f2a1979a13b7d5460b59df50d6c8714832c11f (diff)
[FIX] Inject user context in all domain and context evaluation
Custom keys from user context may be used in action contexts (not just e.g. searchview filters). For instance, have a custom key context_salesteam (in the user model) and an action defining some search default as a function of the salesteam. In that case, the action's context evaluation (view.js:~275) will blow up. Ensure that does not happen. Note: eval_contexts already injects user_context in the reduction of contexts to evaluate. It should be possible to alter the reduction function to avoid having to inject instance.session.user_context through pyeval.context(), maybe by _.extend-ing ``result_context`` into ``evaluation_context`` at the *top* of the reduction function rather than at its bottom? bzr revid: xmo@openerp.com-20130128130640-ksyvxvx6rlc4820n
Diffstat (limited to 'addons/analytic_user_function')
0 files changed, 0 insertions, 0 deletions