[IMP] pms: add out of service to folio, related from reservation

This commit is contained in:
miguelpadin
2022-12-20 18:42:21 +01:00
committed by Darío Lodeiros
parent 2a6e8e61c2
commit 8b736cd659
2 changed files with 11 additions and 4 deletions

View File

@@ -329,6 +329,10 @@ class PmsFolio(models.Model):
comodel_name="room.closure.reason",
check_pms_properties=True,
)
out_service_description = fields.Text(
string="Cause of out of service",
help="Indicates the cause of out of service",
)
segmentation_ids = fields.Many2many(
string="Segmentation",
help="Segmentation tags to classify folios",

View File

@@ -159,6 +159,12 @@ class PmsReservation(models.Model):
check_pms_properties=True,
readonly=False,
)
out_service_description = fields.Text(
string="Cause of out of service",
help="Indicates the cause of out of service",
related="folio_id.out_service_description",
readonly=False,
)
company_id = fields.Many2one(
string="Company",
help="Company to which the reservation belongs",
@@ -411,10 +417,7 @@ class PmsReservation(models.Model):
selection=[("late", "Late"), ("intime", "In time"), ("noshow", "No Show")],
tracking=True,
)
out_service_description = fields.Text(
string="Cause of out of service",
help="Indicates the cause of out of service",
)
checkin = fields.Date(
string="Check In",
help="It is the checkin date of the reservation, ",