From 61defb5d523e2b9cbfbe6d0810c60c9c5df3d4ef Mon Sep 17 00:00:00 2001 From: david Date: Tue, 19 Nov 2019 17:10:02 +0100 Subject: [PATCH] [FIX] pos_picking_delayed: ensure test correctness --- pos_picking_delayed/tests/test_module.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pos_picking_delayed/tests/test_module.py b/pos_picking_delayed/tests/test_module.py index 4a55f4d4..66c598b2 100644 --- a/pos_picking_delayed/tests/test_module.py +++ b/pos_picking_delayed/tests/test_module.py @@ -25,11 +25,13 @@ class TestModule(TransactionCase): 'base': 'list_price', })] }) - self.pos_config = self.env.ref('point_of_sale.pos_config_main').copy() - self.pos_config.write({ + pos_config_main = self.env.ref('point_of_sale.pos_config_main') + # Ensure tests correctness despite default currency + pos_config_main.write({ 'available_pricelist_ids': [(6, 0, self.pricelist.ids)], 'pricelist_id': self.pricelist.id, }) + self.pos_config = pos_config_main.copy() self.pos_config.open_session_cb() def test_01_picking_delayed_enabled(self):