mirror of
https://bitbucket.org/presik/trytonpsk-hotel.git
synced 2023-12-14 07:52:52 +01:00
Fix
This commit is contained in:
parent
95fb256e56
commit
e88f169736
5 changed files with 20 additions and 16 deletions
|
@ -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'
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=6.0.4
|
||||
version=6.0.5
|
||||
depends:
|
||||
party
|
||||
company
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in a new issue