This commit is contained in:
Darío Lodeiros
2023-10-09 17:49:28 +02:00
parent b2925a6cad
commit 4ec2ca2bd9
28 changed files with 118 additions and 6 deletions

View File

@@ -35,6 +35,7 @@ class PmsProperty(models.Model):
help="Current property",
comodel_name="res.partner",
required=True,
index=True,
ondelete="restrict",
)
pms_property_code = fields.Char(
@@ -45,6 +46,7 @@ class PmsProperty(models.Model):
string="Company",
help="The company that owns or operates this property.",
comodel_name="res.company",
index=True,
required=True,
)
user_ids = fields.Many2many(
@@ -66,6 +68,7 @@ class PmsProperty(models.Model):
help="The default pricelist used in this property.",
comodel_name="product.pricelist",
required=True,
index=True,
domain="[('is_pms_available', '=', True)]",
default=lambda self: self.env.ref("product.list0").id,
)
@@ -80,6 +83,7 @@ class PmsProperty(models.Model):
help="The sequence that formed the name of the folio.",
check_company=True,
copy=False,
index=True,
comodel_name="ir.sequence",
)
checkin_sequence_id = fields.Many2one(
@@ -87,6 +91,7 @@ class PmsProperty(models.Model):
help="Field used to create the name of the checkin partner",
check_company=True,
copy=False,
index=True,
comodel_name="ir.sequence",
)