mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_inventory_exclude_sublocation: No create new user for tests, only assign rights to demo user
This commit is contained in:
@@ -23,12 +23,8 @@ 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.res_users_model.create({
|
||||
'name': 'Test Account User',
|
||||
'login': 'user_1',
|
||||
'password': 'demo',
|
||||
'email': 'example@yourcompany.com',
|
||||
'company_id': self.company.id,
|
||||
self.user = self.env.ref('base.user_demo')
|
||||
self.user.write({
|
||||
'company_ids': [(4, self.company.id)],
|
||||
'groups_id': [(6, 0, [
|
||||
self.grp_stock_manager.id,
|
||||
|
||||
Reference in New Issue
Block a user