summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/controller_adapter.js
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2020-01-13 11:52:13 +0000
committerYannick Tivisse <yti@odoo.com>2020-01-14 08:26:05 +0000
commit472ac63f1f115cb632b1c1c57c9fb22d15af9caa (patch)
tree4121a6b1ed1a82cfaf0f27462b93425f26271f53 /addons/web/static/src/js/views/controller_adapter.js
parentd75859691135b1938e59893ea27a623b77405763 (diff)
[FIX] models.py: Fix check_company mechanism
Purpose ======= If check company is set on a field and if the user has no access right to the field value (example: address_id on an expense sheet could be set to a private res.partner, on an onchange method when setting the employee), then the check_company mechanism will raise an AccessError when trying the validate the companies on the different records. Specification ============= As we only wish to validate the new record values and not the access rights, the validation could be done as a superuser to avoid unecessary errors. closes odoo/odoo#43240 Taskid: 2170006 X-original-commit: 37a9b6c63dcbc268013fbe1a890cf9390eb8e223 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/controller_adapter.js')
0 files changed, 0 insertions, 0 deletions