summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2020-03-09 11:08:35 +0000
committerNicolas Martinelli <nim@odoo.com>2020-03-10 08:53:10 +0000
commit5f5a0c58a1ded1a01497058d04f8df7a2781578e (patch)
tree83a5279ceb38c8297d9da530b5c4325d7a9df6b7 /addons/web/static/src/js/fields/basic_fields.js
parenta4149d923bf08ecc78c9b3c68026bb45755d0846 (diff)
[FIX] sale_quotation_builder: multi-company
- Create 2 companies A & B - Set the website in A - Set the user in both companies, main company being A - Create a SO template in company B - Click on "Design Template" An AccessError is raised because: - `slug` accesses the `display_name` of the template which is in company B - the `allowed_company_ids` is set to company A in [1] A solution could be to always set: ``` context['allowed_company_ids'] = request.env.user.company_ids.ids ``` But the side-effects could cause other issues. Therefore, we handle the `slug` manually. [1] https://github.com/odoo/odoo/blob/af411b866aa2052c01168342f8f05ae3dabad83e/addons/website/models/ir_http.py#L203 opw-2194103 closes odoo/odoo#47249 X-original-commit: 0bcfffd291aceb74a5260a49d2fa3032f511dba1 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions