From 4e8d7e8edfa476fe7d36a1c88fe594cba8ae20e2 Mon Sep 17 00:00:00 2001 From: "Mahdi Cheikh Rouhou (macr)" Date: Tue, 26 Mar 2024 10:22:52 +0100 Subject: [PATCH] [FIX] purchase_mrp: fixing test test_valuation_with_backorder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this commit https://github.com/odoo/odoo/pull/158788/commits/07e2fca9e39e9c32182f10bae6ba814a4241b6bf uses `qty_done` instead of `quantity` in test `test_valuation_with_backorder` closes odoo/odoo#159248 Signed-off-by: Xavier Dollé (xdo) --- addons/purchase_mrp/tests/test_purchase_mrp_flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/purchase_mrp/tests/test_purchase_mrp_flow.py b/addons/purchase_mrp/tests/test_purchase_mrp_flow.py index f0dfa3fbc08..b803eebda5a 100644 --- a/addons/purchase_mrp/tests/test_purchase_mrp_flow.py +++ b/addons/purchase_mrp/tests/test_purchase_mrp_flow.py @@ -971,8 +971,8 @@ class TestPurchaseMrpFlow(AccountTestInvoicingCommon): po.button_confirm() receipt = po.picking_ids - receipt.move_line_ids[0].qty_done = 4 - receipt.move_line_ids[1].qty_done = 2 + receipt.move_line_ids[0].quantity = 4 + receipt.move_line_ids[1].quantity = 2 action = receipt.button_validate() wizard = Form(self.env[action['res_model']].with_context(action['context'])).save() wizard.process()