mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms: add out of service to folio, related from reservation
This commit is contained in:
committed by
Darío Lodeiros
parent
2a6e8e61c2
commit
8b736cd659
@@ -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",
|
||||
|
||||
@@ -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, ",
|
||||
|
||||
Reference in New Issue
Block a user