From bd29a5a6b3ec2c30f53aebe1482954c0472b0dee Mon Sep 17 00:00:00 2001 From: david Date: Thu, 27 Aug 2020 09:09:55 +0200 Subject: [PATCH] [FIX] pos_order_mgmt test If we `copy()` the config the currency error raises before prevent it so we pass the pricelist values in the moment --- pos_order_mgmt/tests/test_module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pos_order_mgmt/tests/test_module.py b/pos_order_mgmt/tests/test_module.py index df1d8547..aeeea580 100644 --- a/pos_order_mgmt/tests/test_module.py +++ b/pos_order_mgmt/tests/test_module.py @@ -34,8 +34,7 @@ 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({ + self.pos_config = self.env.ref('point_of_sale.pos_config_main').copy({ 'available_pricelist_ids': [(6, 0, self.pricelist.ids)], 'pricelist_id': self.pricelist.id, })