mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: Changes in staff and out type reservations
This commit is contained in:
@@ -123,6 +123,7 @@
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
name="action_checks"
|
||||
attrs="{'invisible': [('reservation_type', 'in', 'out')]}"
|
||||
>
|
||||
<field
|
||||
name="ratio_checkin_data"
|
||||
@@ -148,6 +149,7 @@
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-magic"
|
||||
attrs="{'invisible': [('reservation_type', 'not in', 'normal')]}"
|
||||
>
|
||||
<span class="o_stat_text">Change in Group</span>
|
||||
</button>
|
||||
@@ -165,6 +167,7 @@
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-globe icon"
|
||||
attrs="{'invisible': [('reservation_type', '!=', 'normal')]}"
|
||||
>
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_text">Customer</span>
|
||||
@@ -239,7 +242,10 @@
|
||||
name="sale_details"
|
||||
>
|
||||
<field name="pms_property_id" invisible="0" />
|
||||
<field name="pricelist_id" />
|
||||
<field
|
||||
name="pricelist_id"
|
||||
attrs="{'invisible': [('reservation_type', 'not in', 'normal')]}"
|
||||
/>
|
||||
<field
|
||||
name="company_id"
|
||||
options="{'no_create': True}"
|
||||
@@ -249,10 +255,13 @@
|
||||
name="reservation_type"
|
||||
attrs="{'readonly':[('state','not in',('draft'))]}"
|
||||
/>
|
||||
<field name="agency_id" />
|
||||
<field
|
||||
name="agency_id"
|
||||
attrs="{'invisible': [('reservation_type', 'not in', 'normal')]}"
|
||||
/>
|
||||
<field
|
||||
name="channel_type_id"
|
||||
attrs="{'readonly':[('agency_id','!=', False)]}"
|
||||
attrs="{'readonly':[('agency_id','!=', False)], 'invisible':[('reservation_type', 'not in', 'normal')]}"
|
||||
/>
|
||||
<field name="internal_comment" />
|
||||
</group>
|
||||
@@ -260,6 +269,7 @@
|
||||
class="oe_subtotal_footer oe_right"
|
||||
colspan="2"
|
||||
name="folio_total"
|
||||
attrs="{'invisible':[('reservation_type', '!=', 'normal')]}"
|
||||
>
|
||||
<field
|
||||
name="amount_untaxed"
|
||||
@@ -302,7 +312,10 @@
|
||||
<field name="invoices_paid" invisible="1" />
|
||||
</group>
|
||||
<notebook colspan="4" col="1">
|
||||
<page string="Sale Lines">
|
||||
<page
|
||||
string="Sale Lines"
|
||||
attrs="{'invisible':[('reservation_type', '!=', 'normal')]}"
|
||||
>
|
||||
<field
|
||||
name="sale_line_ids"
|
||||
widget="section_and_note_one2many"
|
||||
@@ -465,7 +478,11 @@
|
||||
}"
|
||||
/>
|
||||
</page>
|
||||
<page name="invoicing" string="Invoicing">
|
||||
<page
|
||||
name="invoicing"
|
||||
string="Invoicing"
|
||||
attrs="{'invisible':[('reservation_type', '!=', 'normal')]}"
|
||||
>
|
||||
<div
|
||||
class="alert alert-info"
|
||||
role="alert"
|
||||
|
||||
@@ -130,8 +130,9 @@
|
||||
string="Print All Checkins"
|
||||
type="object"
|
||||
icon="fa-print"
|
||||
attrs="{'invisible':[
|
||||
('checkin_partner_ids','=', [])
|
||||
attrs="{'invisible':['|',
|
||||
('checkin_partner_ids','=', []),
|
||||
('reservation_type', 'in', ('out'))
|
||||
]}"
|
||||
/>
|
||||
<button
|
||||
@@ -139,6 +140,7 @@
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-globe icon"
|
||||
attrs="{'invisible':[('reservation_type','not in',('normal'))]}"
|
||||
>
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_text">Customer</span>
|
||||
@@ -200,8 +202,8 @@
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
name="action_checkin_partner_view"
|
||||
attrs="{'invisible': [
|
||||
('allowed_checkin', '!=', True),
|
||||
attrs="{'invisible': ['|',
|
||||
('allowed_checkin', '!=', True), ('reservation_type','in',('out'))
|
||||
]}"
|
||||
>
|
||||
<field
|
||||
@@ -286,11 +288,6 @@
|
||||
attrs="{'invisible': [('splitted','=',True)]}"
|
||||
/>
|
||||
</h3>
|
||||
<field
|
||||
name="out_service_description"
|
||||
placeholder="Out service description"
|
||||
attrs="{'invisible':[('reservation_type','not in',('out'))]}"
|
||||
/>
|
||||
<group col="8">
|
||||
<group
|
||||
colspan="2"
|
||||
@@ -298,12 +295,20 @@
|
||||
string="General Info"
|
||||
name="contact_details"
|
||||
>
|
||||
<field name="partner_id" invisible="0" />
|
||||
<field
|
||||
name="partner_id"
|
||||
attrs="{'invisible':[('reservation_type','in',('out'))]}"
|
||||
/>
|
||||
<field
|
||||
name="partner_name"
|
||||
placeholder="Guest"
|
||||
attrs="{'invisible':[('reservation_type','in',('out'))]}"
|
||||
/>
|
||||
<field
|
||||
name="out_service_description"
|
||||
placeholder="Out service description"
|
||||
attrs="{'invisible':[('reservation_type','not in',('out'))]}"
|
||||
/>
|
||||
<field
|
||||
name="email"
|
||||
placeholder="email"
|
||||
@@ -340,6 +345,7 @@
|
||||
<field
|
||||
name="pricelist_id"
|
||||
options="{'no_open':True,'no_create': True}"
|
||||
attrs="{'invisible': [('reservation_type', '!=', 'normal')]}"
|
||||
/>
|
||||
<!--<field
|
||||
name="agency_id"
|
||||
@@ -376,10 +382,13 @@
|
||||
nolabel="1"
|
||||
placeholder="Reservation Notes"
|
||||
/>
|
||||
<field name="agency_id" />
|
||||
<field
|
||||
name="agency_id"
|
||||
attrs="{'invisible': [('reservation_type', '!=', 'normal')]}"
|
||||
/>
|
||||
<field
|
||||
name="channel_type_id"
|
||||
attrs="{'readonly':[('agency_id','!=', False)]}"
|
||||
attrs="{'readonly':[('agency_id','!=', False)], 'invisible': [('reservation_type', '!=', 'normal')]}"
|
||||
/>
|
||||
</group>
|
||||
<group
|
||||
@@ -387,6 +396,7 @@
|
||||
class="oe_subtotal_footer oe_right"
|
||||
name="reservation_total"
|
||||
string="Amounts"
|
||||
attrs="{'invisible':[('reservation_type', '!=', 'normal')]}"
|
||||
>
|
||||
<field
|
||||
name="price_services"
|
||||
@@ -483,7 +493,11 @@
|
||||
<field name="pms_property_id" invisible="1" />
|
||||
</tree>
|
||||
</field>
|
||||
<group string="Services" name="reservation_services">
|
||||
<group
|
||||
string="Services"
|
||||
name="reservation_services"
|
||||
attrs="{'invisible':[('reservation_type', 'not in', ('normal'))]}"
|
||||
>
|
||||
<field
|
||||
name="service_ids"
|
||||
context="{'default_reservation_id': active_id, 'default_folio_id': folio_id, 'form_view_ref':'pms.pms_service_view_form'}"
|
||||
@@ -596,7 +610,7 @@
|
||||
<page
|
||||
name="invoicing"
|
||||
string="Invoicing"
|
||||
attrs="{'invisible': [('reservation_type','in',('out'))]}"
|
||||
attrs="{'invisible': [('reservation_type','in',('out','staff'))]}"
|
||||
>
|
||||
</page>
|
||||
<page name="others" string="Others">
|
||||
|
||||
Reference in New Issue
Block a user