From ec7d41f2c50cd064e3df6ee40e5541927a61b43a Mon Sep 17 00:00:00 2001 From: Dario Lodeiros Date: Mon, 19 Jul 2021 18:36:50 +0200 Subject: [PATCH] [IMP] pms: add interna comments to booking engine --- pms/wizards/pms_booking_engine.py | 5 +++++ pms/wizards/pms_booking_engine_views.xml | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/pms/wizards/pms_booking_engine.py b/pms/wizards/pms_booking_engine.py index b39002ce6..7e739416f 100644 --- a/pms/wizards/pms_booking_engine.py +++ b/pms/wizards/pms_booking_engine.py @@ -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: diff --git a/pms/wizards/pms_booking_engine_views.xml b/pms/wizards/pms_booking_engine_views.xml index fbd2db0ce..32bfc3d97 100644 --- a/pms/wizards/pms_booking_engine_views.xml +++ b/pms/wizards/pms_booking_engine_views.xml @@ -128,6 +128,15 @@ +
+ + + +