mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms: fix search property parent_id partner model related
This commit is contained in:
@@ -38,6 +38,12 @@ class PmsProperty(models.Model):
|
||||
index=True,
|
||||
ondelete="restrict",
|
||||
)
|
||||
parent_id = fields.Many2one(
|
||||
comodel_name="pms.property", string="Parent Property", index=True
|
||||
)
|
||||
child_ids = fields.One2many(
|
||||
comodel_name="pms.property", inverse_name="parent_id", string="Child Properties"
|
||||
)
|
||||
pms_property_code = fields.Char(
|
||||
string="Property Code",
|
||||
help="Short name property",
|
||||
|
||||
@@ -822,6 +822,7 @@
|
||||
string="Property"
|
||||
enable_counters="1"
|
||||
icon="fa-h-square"
|
||||
domain="[('company_id', '=', company_id)]"
|
||||
/>
|
||||
<field
|
||||
name="state"
|
||||
|
||||
@@ -1106,6 +1106,7 @@
|
||||
string="Property"
|
||||
enable_counters="1"
|
||||
icon="fa-h-square"
|
||||
domain="[('company_id', '=', company_id])]"
|
||||
/>
|
||||
<field
|
||||
name="state"
|
||||
|
||||
@@ -150,11 +150,18 @@
|
||||
<field name="room_amenity_ids" />
|
||||
<newline />
|
||||
<searchpanel>
|
||||
<field
|
||||
name="company_id"
|
||||
string="Company"
|
||||
enable_counters="1"
|
||||
icon="fa-building"
|
||||
/>
|
||||
<field
|
||||
name="pms_property_id"
|
||||
string="Property"
|
||||
enable_counters="1"
|
||||
select="multi"
|
||||
domain="[('company_id', '=', company_id)]"
|
||||
/>
|
||||
<field
|
||||
name="room_type_id"
|
||||
|
||||
Reference in New Issue
Block a user