This commit is contained in:
Oscar 2021-11-24 11:39:13 -05:00
parent 95fb256e56
commit e88f169736
5 changed files with 20 additions and 16 deletions

View file

@ -207,6 +207,10 @@ class Booking(Workflow, ModelSQL, ModelView):
def default_state():
return 'offer'
@staticmethod
def default_plan():
return 'bed_breakfast'
@staticmethod
def default_invoice_method():
return 'by_booking'

View file

@ -92,9 +92,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.action.act_window.domain" id="act_guest_moves_form_domain_all">
<field name="name">All</field>
<field name="sequence" eval="90"/>
<field name="domain" eval="[
('arrival_date', '>=', Date()),
]" pyson="1"/>
<field name="domain" eval="[]" pyson="1"/>
<field name="act_window" ref="act_board_folio_view"/>
</record>

View file

@ -318,11 +318,16 @@ class CreateDailyServices(Wizard):
if not fol.breakfast_included:
continue
for guest in fol.guests:
if guest.party:
guest_name = guest.party.name
else:
guest_name = fol.main_guest.name
lines_to_create.append({
'folio': fol.id,
'service': service.id,
'room': fol.room.id,
'guest': guest.party.name,
'guest': guest_name,
'product': product.id,
'quantity': 1,
})

View file

@ -1,5 +1,5 @@
[tryton]
version=6.0.4
version=6.0.5
depends:
party
company

View file

@ -29,18 +29,20 @@ this repository contains the full copyright notices and license terms. -->
view_ids="hotel.booking_folio_view_tree"/>
</page>
<page string="Additional Info" id="additional_info">
<label name="guarantee"/>
<field name="guarantee"/>
<label name="company"/>
<field name="company"/>
<label name="currency"/>
<field name="currency"/>
<label name="person_num"/>
<field name="person_num"/>
<label name="complementary"/>
<field name="complementary"/>
<label name="type_complementary"/>
<field name="type_complementary"/>
<label name="currency"/>
<field name="currency"/>
<label name="company"/>
<field name="company"/>
<label name="cancellation_policy"/>
<field name="cancellation_policy" widget="selection"/>
<label name="person_num"/>
<field name="person_num"/>
<label name="vehicles_num"/>
<field name="vehicles_num"/>
<label name="vehicle_plate"/>
@ -62,11 +64,6 @@ this repository contains the full copyright notices and license terms. -->
<field name="created_channel"/>
</page>
<page string="Marketing" id="marketing">
<separator id="marketing_channel" string="Channel information" colspan="4"/>
<label name="guarantee"/>
<field name="guarantee"/>
<newline/>
<separator id="marketing_advertisement" string="Advertisement information" colspan="4"/>
<label name="source_contact"/>
<field name="source_contact"/>
<label name="segment"/>