summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2019-07-10 08:47:06 +0000
committerYannick Tivisse <yti@odoo.com>2019-07-10 08:47:06 +0000
commit4a51fad2d58e60a4c4fe1a24ea71d3e7589049bf (patch)
tree51137b48d6f56e44e0c55b8e0422fc12c720a1a4 /addons/web/static/src
parentc429c0e0bd1208694623d5567682c43f9f0e51b7 (diff)
[FIX] hr: Load the public views on load_views if no access to employees
Purpose ======= On a many2many targeting the hr.employee model, if the user has no access rights to the hr.employee model, clicking on a record of the many2many will lead to a traceback. Specification ============= It's because load_views, called by the web client, will try to load the form view on the hr.employee model. Overriding the method to load the public employee form view instead if the user has no read access is sufficient to solve the issue. We could have overriden the methods fields_view_get and fields_get, but it doesn't seem necessary yet. closes odoo/odoo#34724 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions