Skip to content

Commit

Permalink
Merge pull request #171 from Eficent/10.0-imp-operating_unit
Browse files Browse the repository at this point in the history
[10.0][backport] operating_unit improvement
  • Loading branch information
AaronHForgeFlow committed Feb 8, 2019
2 parents f95ece5 + fd9bff2 commit 3291633
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions operating_unit/models/operating_unit.py
Expand Up @@ -18,6 +18,10 @@ class OperatingUnit(models.Model):
'res.company', 'Company', required=True, default=lambda self:
self.env['res.company']._company_default_get('account.account'))
partner_id = fields.Many2one('res.partner', 'Partner', required=True)
user_ids = fields.Many2many(
'res.users', 'operating_unit_users_rel', 'poid', 'user_id',
'Users Allowed',
)

_sql_constraints = [
('code_company_uniq', 'unique (code,company_id)',
Expand Down

0 comments on commit 3291633

Please sign in to comment.