summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/controllers
diff options
context:
space:
mode:
authornorlinhenrik <henrik.norl@gmail.com>2017-01-08 10:31:09 +0100
committerMartin Trigaux <mat@odoo.com>2017-01-16 11:55:07 +0100
commit47c60db4a06174baea43c0fda0dbf6c262a1676d (patch)
tree246140eec8e538ed2f8b7ff74e974f9b37b674f4 /addons/auth_oauth/controllers
parentb74e02b847badc75bc16f85ae42713ba0ac42006 (diff)
[FIX] product: set the correct company in property
`set_multi` uses the company of the current user. As the property is created in sudo, the company of the admin may be different than the one of the current user. Before this commit, setting a different pricelist on a partner when logged in a different company than the admin, the change had no apparent effect (was creating a property for the admin's company). Set `force_company` in the context to always set the one on the current user. set_multi ignores if the same as the global rule to avoid bloating the table. Closes #14984
Diffstat (limited to 'addons/auth_oauth/controllers')
0 files changed, 0 insertions, 0 deletions