From efafc5830a9e09306390ada808212c2188df57df Mon Sep 17 00:00:00 2001 From: Sergio Teruel Date: Wed, 6 Nov 2019 17:32:28 +0100 Subject: [PATCH] [IMP] stock_inventory_exclude_sublocation: Create new user for tests with no password --- .../tests/test_exclude_sublocation.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stock_inventory_exclude_sublocation/tests/test_exclude_sublocation.py b/stock_inventory_exclude_sublocation/tests/test_exclude_sublocation.py index db37ee53e..42b5f1106 100644 --- a/stock_inventory_exclude_sublocation/tests/test_exclude_sublocation.py +++ b/stock_inventory_exclude_sublocation/tests/test_exclude_sublocation.py @@ -23,8 +23,11 @@ class TestStockInventoryExcludeSublocation(TransactionCase): self.grp_production_lot = self.env.ref('stock.group_production_lot') self.grp_tracking_lot = self.env.ref('stock.group_tracking_lot') - self.user = self.env.ref('base.user_demo') - self.user.write({ + self.user = self.res_users_model.create({ + 'name': 'Test Account User', + 'login': 'user_1', + 'email': 'example@yourcompany.com', + 'company_id': self.company.id, 'company_ids': [(4, self.company.id)], 'groups_id': [(6, 0, [ self.grp_stock_manager.id,