diff options
| author | Goffin Simon <sig@odoo.com> | 2020-06-04 14:01:53 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2020-06-08 11:21:24 +0000 |
| commit | 54c828bcbaf293fe0c0e7b6a3c3649dcaa518428 (patch) | |
| tree | 5c248fe94bb0e56c5d09e8bf6fddd89d4e080dc9 /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | 6ac5b14d52e89f48ed919a7ba0bea5193965b58c (diff) | |
[FIX] sale: Duplicated Sale Order Sequences through Imports
Steps to reproduce the bug:
- Let's consider a company C in the Arab Emirates(AE) with l10n_ae
- Let's consider a customer C1 from AE (as country) and Abu Dhabi (as state)
- Let's consider a customer C2 from AE (as country) and Dubai (as state)
- Let's consider that the current user has no right in accounting
- Let's consider the SO sequence with no_gap and with next_number=1
- Create a product P with 5% dubai tax
- Create SO1 for C1 with P (next_number=2)
- Create SO2 for C2 with P (next_number=3)
- Export SO1 and SO2 xlsx file F
- Import F
Bug:
An error message appeared in the logs:
odoo.addons.base.models.ir_model: Access Denied by ACLs for operation: write, uid: 6, model: account.tax
because odoo tried to write on the field invoice_repartition_line_ids computed from function compute_all on model account.tax
The next_number was 4 instead of 5 because the update made in function _update_nogap was rollbacked
due the Access Denied
opw:2266048
closes odoo/odoo#52588
X-original-commit: e009c3a0df12801e06a4e2301f888ca77bb24946
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
