From 7907ec49c4e3beb6e0611c7c256cca522f66a5e5 Mon Sep 17 00:00:00 2001 From: roen-odoo Date: Tue, 4 Jul 2023 09:10:06 +0000 Subject: [PATCH] [FIX] point_of_sale: fix test with hardcoded pricelist ID This fix removes the hardcoded pricelist ID and uses the one used in the PoS config instead. closes odoo/odoo#129136 X-original-commit: f5d3e985ad41af29fc6cbcfc2417e475443cd00d Signed-off-by: Robin Heinz (rhe) Signed-off-by: Robin Engels (roen) --- addons/point_of_sale/tests/test_point_of_sale_flow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/point_of_sale/tests/test_point_of_sale_flow.py b/addons/point_of_sale/tests/test_point_of_sale_flow.py index c90adb7b3a4..3c68e4d513c 100644 --- a/addons/point_of_sale/tests/test_point_of_sale_flow.py +++ b/addons/point_of_sale/tests/test_point_of_sale_flow.py @@ -146,6 +146,7 @@ class TestPointOfSaleFlow(TestPointOfSaleCommon): [0, 0, {'lot_name': '1002'}], ] })], + 'pricelist_id': self.pos_config.pricelist_id.id, 'amount_paid': 12.0, 'amount_total': 12.0, 'amount_tax': 0.0, @@ -1456,6 +1457,7 @@ class TestPointOfSaleFlow(TestPointOfSaleCommon): [0, 0, {'lot_name': '1001'}], ] })], + 'pricelist_id': self.pos_config.pricelist_id.id, 'amount_paid': 6.0, 'amount_total': 6.0, 'amount_tax': 0.0,