Change template
This commit is contained in:
parent
7cef1d02a1
commit
444770b1b3
10
booking.py
10
booking.py
|
@ -271,8 +271,9 @@ class Booking(Workflow, ModelSQL, ModelView):
|
||||||
Eval('registration_state') == 'check_out',
|
Eval('registration_state') == 'check_out',
|
||||||
},
|
},
|
||||||
'pay_advance': {
|
'pay_advance': {
|
||||||
'invisible': Eval('state').in_(['cancelled', 'offer', 'no_show',
|
'invisible': Eval('state').in_(
|
||||||
'check_out']),
|
['cancelled', 'offer', 'no_show', 'check_out']
|
||||||
|
),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
cls._error_messages.update({
|
cls._error_messages.update({
|
||||||
|
@ -684,6 +685,11 @@ class BookingLine(ModelSQL, ModelView):
|
||||||
'occupied_room': ('The room is occupied in the date %s'),
|
'occupied_room': ('The room is occupied in the date %s'),
|
||||||
'restring_room': ('The room %s is in restring access for quarantine protocolo!'),
|
'restring_room': ('The room %s is in restring access for quarantine protocolo!'),
|
||||||
})
|
})
|
||||||
|
cls._buttons.update({
|
||||||
|
'create_guest': {
|
||||||
|
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def write(cls, *args):
|
def write(cls, *args):
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<p>Dear customer, {{ record.approved_by.name }}</p>
|
<p>Dear customer, {{ record.approved_by.name }}</p>
|
||||||
<p>Your booking has been confirmed No. <b> {{record.number }}<b>:</p>
|
<p>Your booking has been confirmed No. <b> {{record.number }}<b>:</p>
|
||||||
Room: <b>{{ record.room }}</b><br>
|
Room: <b>{{ record.room }}</b><br>
|
||||||
Check-In: <b>{{ record.check_in }}</b><br>
|
Check-In Date: <b>{{ record.check_in }}</b><br>
|
||||||
Check-Out: <b>{{ record.check_out }}</b><br>
|
Check-Out Date: <b>{{ record.check_out }}</b><br>
|
||||||
</b><br>
|
</b><br>
|
||||||
|
|
||||||
<p>-------------------------<br>
|
<p>-------------------------<br>
|
Loading…
Reference in New Issue