From ffed29abf6501cb16214889957ef86a31d86987f Mon Sep 17 00:00:00 2001 From: david Date: Wed, 26 Aug 2020 12:31:51 +0200 Subject: [PATCH] [FIX] pos_order_mgmt: test pricelist In the test, the only available pricelist should be the one we prepared --- pos_order_mgmt/tests/test_module.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pos_order_mgmt/tests/test_module.py b/pos_order_mgmt/tests/test_module.py index 686639b2..df1d8547 100644 --- a/pos_order_mgmt/tests/test_module.py +++ b/pos_order_mgmt/tests/test_module.py @@ -35,6 +35,10 @@ class TestModule(TransactionCase): # Create a new pos config and open it self.pos_config = self.env.ref('point_of_sale.pos_config_main').copy() + self.pos_config.write({ + 'available_pricelist_ids': [(6, 0, self.pricelist.ids)], + 'pricelist_id': self.pricelist.id, + }) self.pos_config.open_session_cb() # Test Section