From 04e94a34f55e3dc268e6ace5554b1002b1432a32 Mon Sep 17 00:00:00 2001 From: Emilie SOUTIRAS <122791265+emiliesoutiras@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:13:09 +0200 Subject: [PATCH] Update purchase_lot/tests/test_purchase_lot.py variable name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kévin Roche --- purchase_lot/tests/test_purchase_lot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/purchase_lot/tests/test_purchase_lot.py b/purchase_lot/tests/test_purchase_lot.py index 6195a9f560c..e64ece6c5bd 100644 --- a/purchase_lot/tests/test_purchase_lot.py +++ b/purchase_lot/tests/test_purchase_lot.py @@ -114,7 +114,7 @@ def test_lot_propagation(self): self.env.user.groups_id += self.env.ref("stock.group_adv_location") # Create a sales order with a line of 200 PCE incoming shipment, - # with route_id drop shipping + # with route_id buy so_form = Form(self.env["sale.order"]) so_form.partner_id = self.customer so_form.payment_term_id = self.env.ref( @@ -129,16 +129,16 @@ def test_lot_propagation(self): line.price_unit = 1.00 line.route_id = self.env.ref("purchase_stock.route_warehouse0_buy") - sale_order_drp_shpng = so_form.save() - sale_order_drp_shpng.order_line.lot_id = self.env["stock.lot"].create( + sale_order = so_form.save() + sale_order.order_line.lot_id = self.env["stock.lot"].create( { "name": "Seq test DS pdt", "product_id": self.external_serial_product.id, } ) - initial_lot = sale_order_drp_shpng.order_line.lot_id + initial_lot = sale_order.order_line.lot_id # Confirm sales order - sale_order_drp_shpng.action_confirm() + sale_order.action_confirm() # Check a quotation was created to a certain vendor # and confirm so it becomes a confirmed purchase order