diff --git a/booking.py b/booking.py index 8694d5d..fe15c1c 100644 --- a/booking.py +++ b/booking.py @@ -250,7 +250,7 @@ class Booking(Workflow, ModelSQL, ModelView): 'offer': { 'invisible': ~Eval('state').in_([ 'confirmed', 'cancelled', 'not_confirmed' - ]), + ]) and Eval('registration_state').in_(['check_in', 'check_out']), }, 'confirm': { 'invisible': ~Eval('state').in_(['offer', 'not_confirmed']) @@ -260,11 +260,11 @@ class Booking(Workflow, ModelSQL, ModelView): }, 'check_in': { 'invisible': Eval('state') != 'confirmed' and - Eval('registration_state') == 'check_in', + Eval('registration_state').in_(['check_in', 'check_out']), }, 'no_show': { 'invisible': Eval('state') != 'confirmed' and - Eval('registration_state') == 'no_show', + Eval('registration_state').in_(['check_in', 'check_out']), }, 'check_out': { 'invisible': Eval('state') != 'confirmed' and diff --git a/booking.xml b/booking.xml index 4b1efba..88865f3 100644 --- a/booking.xml +++ b/booking.xml @@ -195,13 +195,21 @@ this repository contains the full copyright notices and license terms. --> + + hotel.booking.line + tree + booking_line_guest_tree + Board Guest Moves hotel.booking.line + - + ]" pyson="1"/> + + All + + + + - + + + + +

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 }}
+

+ +

-------------------------
+ {{ record.company and record.company.party.name }}
+

+ + diff --git a/tryton.cfg b/tryton.cfg index dbf10b7..160d310 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=5.0.3 +version=5.0.4 depends: party company @@ -11,6 +11,7 @@ depends: account_voucher party_personal company_timezone + email xml: hotel.xml configuration.xml diff --git a/view/booking_line_guest_tree.xml b/view/booking_line_guest_tree.xml new file mode 100644 index 0000000..1749ec5 --- /dev/null +++ b/view/booking_line_guest_tree.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + diff --git a/view/channel_form.xml b/view/channel_form.xml index 787a600..bdcbd5d 100644 --- a/view/channel_form.xml +++ b/view/channel_form.xml @@ -20,5 +20,7 @@ this repository contains the full copyright notices and license terms. -->