[IMP]pms_housekeeping: constrains and tests for housekeeping tasks

This commit is contained in:
braisab
2024-02-22 11:56:22 +01:00
committed by Darío Lodeiros
parent 30f0748cb8
commit f403daf78f
8 changed files with 305 additions and 52 deletions

View File

@@ -57,10 +57,12 @@
<field
name="housekeeper_ids"
widget="many2many_tags"
domain="[('id', 'in', allowed_housekeeper_ids)]"
domain="[('job_id.name', '=', 'Housekeeper')]"
/>
<field
name="pms_property_ids"
widget="many2many_tags"
/>
<field name="pms_property_ids" widget="many2many_tags" />
<field name="allowed_housekeeper_ids" invisible="1" />
<field name="parent_id" />
<field name="description" />
</group>

View File

@@ -11,7 +11,7 @@
<field name="state" />
<field name="priority" />
<field name="cleaning_comments" />
<field name="employee_ids" />
<field name="housekeeper_ids" />
<field name="parent_id" />
</tree>
</field>
@@ -73,7 +73,12 @@
<group class="col-6">
<field name="task_date" />
<field name="priority" />
<field name="employee_ids" widget="many2many_tags" />
<field
name="housekeeper_ids"
widget="many2many_tags"
domain="[('id', 'in', allowed_housekeeper_ids)]"
/>
<field name="allowed_housekeeper_ids" invisible="1"/>
</group>
<group class="col-12">
<field name="parent_id" />