[FIX]pms_hr_property: name card and

This commit is contained in:
irluidev
2024-08-05 14:20:27 +02:00
parent b0f5bb5bec
commit b3cf7ee12e
2 changed files with 1 additions and 13 deletions

View File

@@ -14,18 +14,6 @@ class PmsHrProperty(models.Model):
compute="_compute_employee_ids",
)
# @api.depends('employee_ids')
# def _compute_employee_ids(self):
# specific_job_names = ['Regional Manager','Revenue Manager', 'TAZ', 'TMZ']
# for record in self:
# specific_jobs = self.env['hr.job'].search([('name', 'in', specific_job_names)])
# specific_job_ids = specific_jobs.ids
# employees = self.env['hr.employee'].search([
# ('property_ids', 'in', record.id),
# ('job_id', 'in', specific_job_ids)
# ])
# record.employee_ids = employees
@api.depends("employee_ids")
def _compute_employee_ids(self):
for record in self:

View File

@@ -6,7 +6,7 @@
<field name="inherit_id" ref="pms.pms_property_views_form" />
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page name="team_alda2" string="Regional Staff">
<page name="staff_property" string="Property Staff">
<field name="employee_ids">
<tree string="Employees">
<field name="job_id" />