diff --git a/pms/__manifest__.py b/pms/__manifest__.py index e29bbbed2..9fa1e57d7 100644 --- a/pms/__manifest__.py +++ b/pms/__manifest__.py @@ -33,8 +33,10 @@ "data/cron_jobs.xml", "data/pms_sequence.xml", "data/pms_data.xml", + "data/traveller_report_paperformat.xml", "report/pms_folio.xml", "report/pms_folio_templates.xml", + "report/traveller_report_action.xml", # "templates/pms_email_template.xml", "data/menus.xml", "wizards/wizard_payment_folio.xml", @@ -73,6 +75,8 @@ "views/account_journal_views.xml", "views/folio_portal_templates.xml", "views/reservation_portal_templates.xml", + "views/res_company_views.xml", + "views/traveller_report_template.xml", "wizards/wizard_split_join_swap_reservation.xml", "wizards/wizard_massive_changes.xml", "wizards/wizard_advanced_filters.xml", diff --git a/pms/data/traveller_report_paperformat.xml b/pms/data/traveller_report_paperformat.xml new file mode 100644 index 000000000..b5f8b56ef --- /dev/null +++ b/pms/data/traveller_report_paperformat.xml @@ -0,0 +1,20 @@ + + + + + Traveller Report PaperFormat + + custom + 200 + 75 + Portrait + 1 + 3 + 0 + 0 + + 1 + 201 + + + diff --git a/pms/models/pms_property.py b/pms/models/pms_property.py index 36f7c4257..e6609ee31 100644 --- a/pms/models/pms_property.py +++ b/pms/models/pms_property.py @@ -89,6 +89,15 @@ class PmsProperty(models.Model): selection=_tz_get, ) + cardex_warning = fields.Text( + string="Warning in Cardex", + default="Time to access rooms: 14: 00h. " + "Departure time: 12: 00h. If the accommodation " + "is not left at that time, the establishment will " + "charge a day's stay according to current rate that day", + help="Notice under the signature on the traveler's ticket.", + ) + @api.constrains("default_arrival_hour") def _check_arrival_hour(self): for record in self: diff --git a/pms/models/res_company.py b/pms/models/res_company.py index 79135d45a..341d20f80 100644 --- a/pms/models/res_company.py +++ b/pms/models/res_company.py @@ -13,3 +13,8 @@ class ResCompany(models.Model): comodel_name="pms.property", inverse_name="company_id", ) + + privacy_policy = fields.Text( + string="Privacy Policy", + help="Authorization by the user for the" "manage of their personal data", + ) diff --git a/pms/report/traveller_report_action.xml b/pms/report/traveller_report_action.xml new file mode 100644 index 000000000..e36b78184 --- /dev/null +++ b/pms/report/traveller_report_action.xml @@ -0,0 +1,14 @@ + + + + + + diff --git a/pms/views/pms_checkin_partner_views.xml b/pms/views/pms_checkin_partner_views.xml index e88534b5b..87724331c 100644 --- a/pms/views/pms_checkin_partner_views.xml +++ b/pms/views/pms_checkin_partner_views.xml @@ -59,6 +59,16 @@ +