Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lasley committed May 10, 2017
1 parent 4c17d04 commit 79772ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions base_multi_company/__manifest__.py
Expand Up @@ -13,9 +13,6 @@
'installable': True,
'application': False,
'pre_init_hook': 'create_company_assignment_view',
'depends': [
'base',
],
'data': [
'security/ir.model.access.csv',
],
Expand Down
8 changes: 8 additions & 0 deletions base_multi_company/models/res_company_assignment.py
Expand Up @@ -6,6 +6,14 @@


class ResCompanyAssignment(models.Model):
""" This model circumvents company domains to allow assignments.
Normally when using a multi company setup, you are restricted to seeing
only records owned by the company your user is operating under
(`user.company_id`). This creates a catch 22 with multi-company records,
because in order to assign to another company you have to be able to view
that company.
"""

_name = 'res.company.assignment'
_auto = False
Expand Down

0 comments on commit 79772ab

Please sign in to comment.