diff options
| author | Simon Lejeune <sle@openerp.com> | 2019-10-25 14:41:30 +0000 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2019-12-06 14:49:38 +0000 |
| commit | 6564c36c74a62716436de5231dbf12a4c984ce14 (patch) | |
| tree | 5432185799a310307a5dd003b1cd734cedde4096 /addons/mrp_subcontracting/tests | |
| parent | 1e9733be25c0835805177af41007a4a48fbe9dc5 (diff) | |
[REF] stock: immediate and backorder wizard multi
followup of rev [0]
If these wizards are called on multiple pickings, display the list of
the pickings that could be impacted and allow to select which one should
be impacted.
We also adapt the sanity checks at the start of `button_validte` in
order to specify the concerned pickings if needed. We do not enable the
multi behavior for batch at the moment, so it's only enabled for the
validate multi in the list view.
[0] 6ab4b0d4967490ed1ee0559ec296da6637705125
task-2069646
closes odoo/odoo#41497
X-original-commit: ff276c6484b138982f185ec9c832f2dbf25baaef
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/mrp_subcontracting/tests')
| -rw-r--r-- | addons/mrp_subcontracting/tests/test_subcontracting.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp_subcontracting/tests/test_subcontracting.py b/addons/mrp_subcontracting/tests/test_subcontracting.py index bd1136473e1..fc8e01d1a18 100644 --- a/addons/mrp_subcontracting/tests/test_subcontracting.py +++ b/addons/mrp_subcontracting/tests/test_subcontracting.py @@ -526,7 +526,7 @@ class TestSubcontractingFlows(TestMrpSubcontractingCommon): picking_receipt.move_lines.quantity_done = 3 backorder_wiz = picking_receipt.button_validate() - backorder_wiz = self.env[backorder_wiz['res_model']].browse(backorder_wiz['res_id']).with_context(backorder_wiz['context']) + backorder_wiz = Form(self.env[backorder_wiz['res_model']].with_context(backorder_wiz['context'])).save() backorder_wiz.process() backorder = self.env['stock.picking'].search([('backorder_id', '=', picking_receipt.id)]) |
