summaryrefslogtreecommitdiff
path: root/doc/python3.rst
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-04-26 15:44:40 +0200
committerAaron Bohy <aab@odoo.com>2017-04-26 16:35:18 +0200
commitd20074c555bf3b25155264d09ced81997eb632ff (patch)
tree564a9ae3eca697e35a0a7594ffbf150b37000003 /doc/python3.rst
parentb9944978e90980d15d8ce170c986914f0490e240 (diff)
[FIX] web: BasicModel: don't mix fields and action contexts
The context sent when performing RPCs is a mix of several contexts (user_context, action's context, context defined in a field's node in an arch...). In general, the action's context should not be mixed with the field's context: - for global RPCs (read a record, write a record, default_get...) only the action's context should be given - for RPCs triggered by fields (e.g. name_search in a m2o), only the field's context should be sent. The exception is for onchange RPCs, as in this case, both action and field's contexts should be sent. Before this rev, the action context was always sent, which might produced tracebacks (e.g. go to Sales > My Pipeline > New > click on Customer field > Create and Edit > boom).
Diffstat (limited to 'doc/python3.rst')
0 files changed, 0 insertions, 0 deletions