mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_housekeeping: constrains and tests for housekeeping tasks
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user