Change template

This commit is contained in:
Oscar Alvarez 2021-01-23 16:48:26 -05:00
parent 7cef1d02a1
commit 444770b1b3
2 changed files with 10 additions and 4 deletions

View File

@ -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):

View File

@ -5,8 +5,8 @@
<p>Dear customer, {{ record.approved_by.name }}</p>
<p>Your booking has been confirmed No. <b> {{record.number }}<b>:</p>
Room: <b>{{ record.room }}</b><br>
Check-In: <b>{{ record.check_in }}</b><br>
Check-Out: <b>{{ record.check_out }}</b><br>
Check-In Date: <b>{{ record.check_in }}</b><br>
Check-Out Date: <b>{{ record.check_out }}</b><br>
</b><br>
<p>-------------------------<br>