mirror of
https://github.com/bringout/oca-ocb-vertical-industry.git
synced 2026-04-23 04:12:05 +02:00
19.0 vanilla
This commit is contained in:
parent
4607ccbd2e
commit
825ff6514e
487 changed files with 184979 additions and 195262 deletions
|
|
@ -43,7 +43,7 @@ class TestEquipmentMulticompany(TransactionCase):
|
|||
'company_id': company_a.id,
|
||||
'login': 'e_equipment_manager',
|
||||
'email': 'eqmanager@yourcompany.example.com',
|
||||
'groups_id': [(6, 0, [group_manager.id])],
|
||||
'group_ids': [(6, 0, [group_manager.id])],
|
||||
'company_ids': [(6, 0, [company_a.id, company_b.id])]
|
||||
})
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ class TestEquipmentMulticompany(TransactionCase):
|
|||
'company_id': company_b.id,
|
||||
'login': 'emp',
|
||||
'email': 'empuser@yourcompany.example.com',
|
||||
'groups_id': [(6, 0, [group_user.id])],
|
||||
'group_ids': [(6, 0, [group_user.id])],
|
||||
'company_ids': [(6, 0, [company_b.id])]
|
||||
})
|
||||
|
||||
|
|
@ -127,7 +127,7 @@ class TestEquipmentMulticompany(TransactionCase):
|
|||
'company_id': company_b.id,
|
||||
'owner_user_id': equipment_manager.id,
|
||||
})
|
||||
# Now there are total 2 equipments created and can view by equipment_manager user
|
||||
# Now there are total 2 equipment created and can view by equipment_manager user
|
||||
self.assertEqual(Equipment.with_user(equipment_manager).with_context(allowed_company_ids=cids).search_count([]), 2)
|
||||
|
||||
# And there is total 1 equipment can be view by Normal User ( Which user is followers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue