Skip to content

Commit

Permalink
[FIX] ou_hr_department_check_company
Browse files Browse the repository at this point in the history
  • Loading branch information
Pani-k-folk committed Aug 29, 2024
1 parent a2cdfc1 commit 279a1f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hr_operating_unit/models/hr_department.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@

class Department(models.Model):
_inherit = "hr.department"
_check_company_auto = True

operating_unit_id = fields.Many2one(
comodel_name="operating.unit",
string="Operating Unit",
default=lambda self: (self.env["res.users"].operating_unit_default_get()),
check_company=True,
)
1 change: 0 additions & 1 deletion hr_operating_unit/views/hr_department_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<field
name="operating_unit_id"
options="{'no_create': True}"
domain="[('company_id','=', company_id)]"
groups="operating_unit.group_multi_operating_unit"
/>
</field>
Expand Down

0 comments on commit 279a1f0

Please sign in to comment.