summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2020-01-02 09:42:12 +0000
committerArnold Moyaux <arm@odoo.com>2020-01-02 18:11:33 +0000
commitea340afafa90bc6bc421a83d3ae1977efac808f4 (patch)
treea17e33a24b2568b82a9cb3231cb8dfbde41fffec /addons/web/static/src/js/views/basic/basic_controller.js
parent858c9ec3945a40961b5e18aa1ead725a3a1fde45 (diff)
[FIX] mrp_subcontracting: cancel a PO should cancel delivery
When subcontracting a product via a purchase order and not a simple receipt. Then the cancelation of the receipt will not only cancel the receipt of the finished product but not the delivery for the components. It happens because button_cancel on purchase order will call _action_cancel the stock.move linked to purchase order line. It will not call action_cancel on the stock.picking. However the part responsible for the cancelation of components delivery is in the stock.picking action_cancel method. Move the stock.picking action_cancel logic in the stock.move _action_cancel method since it's always call for both usecase. Fixes #42551 closes odoo/odoo#42653 X-original-commit: 841305f271411c3a67af271ac09da9ce0922f100 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