From 444770b1b3c401ad105f3ee8826df66873d2cf8f Mon Sep 17 00:00:00 2001 From: Oscar Alvarez Date: Sat, 23 Jan 2021 16:48:26 -0500 Subject: [PATCH] Change template --- booking.py | 10 ++++++++-- template_demo.html => template_booking.html | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) rename template_demo.html => template_booking.html (76%) diff --git a/booking.py b/booking.py index fe15c1c..f214ac5 100644 --- a/booking.py +++ b/booking.py @@ -271,8 +271,9 @@ class Booking(Workflow, ModelSQL, ModelView): Eval('registration_state') == 'check_out', }, 'pay_advance': { - 'invisible': Eval('state').in_(['cancelled', 'offer', 'no_show', - 'check_out']), + 'invisible': Eval('state').in_( + ['cancelled', 'offer', 'no_show', 'check_out'] + ), }, }) cls._error_messages.update({ @@ -684,6 +685,11 @@ class BookingLine(ModelSQL, ModelView): 'occupied_room': ('The room is occupied in the date %s'), 'restring_room': ('The room %s is in restring access for quarantine protocolo!'), }) + cls._buttons.update({ + 'create_guest': { + + }, + ) @classmethod def write(cls, *args): diff --git a/template_demo.html b/template_booking.html similarity index 76% rename from template_demo.html rename to template_booking.html index 096632e..9ec786e 100644 --- a/template_demo.html +++ b/template_booking.html @@ -5,8 +5,8 @@

Dear customer, {{ record.approved_by.name }}

Your booking has been confirmed No. {{record.number }}:

Room: {{ record.room }}
- Check-In: {{ record.check_in }}
- Check-Out: {{ record.check_out }}
+ Check-In Date: {{ record.check_in }}
+ Check-Out Date: {{ record.check_out }}

-------------------------