mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms: add interna comments to booking engine
This commit is contained in:
@@ -109,6 +109,10 @@ class BookingEngine(models.TransientModel):
|
||||
can_create_folio = fields.Boolean(
|
||||
string="Can create folio", compute="_compute_can_create_folio"
|
||||
)
|
||||
internal_comment = fields.Text(
|
||||
string="Internal Folio Notes",
|
||||
help="Internal Folio notes for Staff",
|
||||
)
|
||||
|
||||
def _default_pms_property_id(self):
|
||||
if self._context.get("default_folio_id"):
|
||||
@@ -235,6 +239,7 @@ class BookingEngine(models.TransientModel):
|
||||
"agency_id": record.agency_id.id,
|
||||
"channel_type_id": record.channel_type_id.id,
|
||||
"segmentation_ids": [(6, 0, record.segmentation_ids.ids)],
|
||||
"internal_comment": record.internal_comment,
|
||||
}
|
||||
)
|
||||
else:
|
||||
|
||||
@@ -128,6 +128,15 @@
|
||||
</group>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<group>
|
||||
<field
|
||||
name="internal_comment"
|
||||
placeholder="Internal comment Folio"
|
||||
nolabel="1"
|
||||
/>
|
||||
</group>
|
||||
</div>
|
||||
<div class="row float-right border mr-2 mb-5">
|
||||
<div class="col-3 ">
|
||||
<group>
|
||||
|
||||
Reference in New Issue
Block a user