summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authoryhu-odoo <yhu@odoo.com>2020-01-20 13:01:30 +0000
committeryhu-odoo <yhu@odoo.com>2020-02-18 10:37:14 +0000
commitdc10774d52a3e8a326470ce21ba3441382a47b57 (patch)
treea3e5d41ff3f0fb418d5e91b9283135f9ea201ce0 /addons/web/static/src/js/views/basic/basic_controller.js
parent1477774582c162c83243a09908e65f4dba54053d (diff)
[FIX] stock, mrp: inter company transit chained moves
Let's say we have a chain of move wh1 - intercomp transit -> intercomp transit - wh2 The second move will be reserved according to what the first move brought since they are chained. This behavior resulted in rev[0] which tries to work around the ir.rule limiting the access of stock.move and stock.move.line records in multi-company environment. This patch wasn't perfect since, if the first move brought a lot, the second move will reserve this lot and it will result in another access error since the lot will still have the company of the first move. We fix this by implementing the following logic: receiving from another company should behave the same as receiving from the supplier, no reservation is applied. We fix this by marking the inter company transit as `_should_bypass_reservation` and we break the move chain if the pull/push rule create an intercompany chain. [0] 6ff34073153767d449804669f31e26c04de0a670 closes odoo/odoo#45601 Task: 2160847 X-original-commit: 67b45da9d877a5a1bb9adb3ce14051e01f67045f Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions