summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2020-01-16 09:00:35 +0000
committerNicolas Martinelli <nim@odoo.com>2020-01-16 15:51:15 +0000
commit33bb316577de29e61444ce6e14a305fd38c3f50d (patch)
tree5379ad58cc14d9f5eaf77b8eeb2002140f80d73b /addons/web/static/src/js/views/basic/basic_controller.js
parent206b197cc9f1073c92018c4e0ea80722ee75f429 (diff)
[FIX] account_analytic_default_purchase: access error
- Activate Analytic Accounting - Set the demo user with only the Purchase User access rights (no accounting access rights) - Create a PO with demo An AccessError is raised because the user has no access to `account.analytic.default`. We can use `sudo` to retrieve the default account. There is no access rights error on `account_analytic_id` or `analytic_tag_ids` later on. Fix the `company_id` at the same time. opw-2171813 closes odoo/odoo#43431 X-original-commit: ef5cc35b50e54ea3d161897bbb089dedb68e36a1 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions