Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bjeficent committed Nov 21, 2018
1 parent 2e46a4a commit 2a05a29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sales_team_operating_unit/security/crm_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<field eval="0" name="perm_write"/>
<field eval="1" name="perm_read"/>
<field eval="0" name="perm_create"/>
<field name="groups" eval="[(4, ref('operating_unit.group_multi_operating_unit'))]"/>
<field name="global" eval="True"/>
</record>

</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def setUp(self):
# B2C Operating Unit
self.b2c = self.env.ref('operating_unit.b2c_operating_unit')
# Create User 1 with Main OU

self.user1 = self._create_user('user_1', [self.grp_sale_mngr,
self.grp_user], self.company,
[self.ou1])
Expand Down Expand Up @@ -54,7 +55,8 @@ def _create_crm_team(self, uid, operating_unit):
"""Create a Sales Team."""
crm = self.crm_team_model.sudo(uid).create({'name': 'CRM team',
'operating_unit_id':
operating_unit.id})
operating_unit.id,
'company_id': self.company.id})
return crm

def test_crm_team(self):
Expand Down

0 comments on commit 2a05a29

Please sign in to comment.