mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms: views sintax
This commit is contained in:
@@ -170,16 +170,11 @@
|
|||||||
attrs="{'readonly':[('state','not in',('draft'))]}"
|
attrs="{'readonly':[('state','not in',('draft'))]}"
|
||||||
/>
|
/>
|
||||||
<field name="agency_id" />
|
<field name="agency_id" />
|
||||||
<<<<<<< HEAD
|
|
||||||
<field
|
<field
|
||||||
name="channel_type_id"
|
name="channel_type_id"
|
||||||
attrs="{'readonly':[('agency_id','!=', False)]}"
|
attrs="{'readonly':[('agency_id','!=', False)]}"
|
||||||
/>
|
/>
|
||||||
<field name="internal_comment" />
|
<field name="internal_comment" />
|
||||||
=======
|
|
||||||
<field name="channel_type_id" />
|
|
||||||
|
|
||||||
>>>>>>> [IMP] Improvements
|
|
||||||
</group>
|
</group>
|
||||||
<group
|
<group
|
||||||
class="oe_subtotal_footer oe_right"
|
class="oe_subtotal_footer oe_right"
|
||||||
|
|||||||
@@ -181,7 +181,7 @@
|
|||||||
options="{'no_create': True,'no_open': True}"
|
options="{'no_create': True,'no_open': True}"
|
||||||
attrs="{'readonly':[('state','not in',('draft'))]}"
|
attrs="{'readonly':[('state','not in',('draft'))]}"
|
||||||
style="margin-right: 30px;"
|
style="margin-right: 30px;"
|
||||||
/>
|
/>
|
||||||
<field
|
<field
|
||||||
name="partner_id"
|
name="partner_id"
|
||||||
default_focus="1"
|
default_focus="1"
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
placeholder="Room"
|
placeholder="Room"
|
||||||
style="margin-right: 30px;"
|
style="margin-right: 30px;"
|
||||||
attrs="{'invisible': [('splitted','=',True)]}"
|
attrs="{'invisible': [('splitted','=',True)]}"
|
||||||
/>
|
/>
|
||||||
<field
|
<field
|
||||||
name="checkin"
|
name="checkin"
|
||||||
widget="daterange"
|
widget="daterange"
|
||||||
@@ -284,7 +284,7 @@
|
|||||||
col="3"
|
col="3"
|
||||||
string="Reservation Details"
|
string="Reservation Details"
|
||||||
name="reservation_details"
|
name="reservation_details"
|
||||||
>
|
>
|
||||||
<field
|
<field
|
||||||
name="pricelist_id"
|
name="pricelist_id"
|
||||||
attrs="{'invisible': [('reservation_type','in',('out'))]}"
|
attrs="{'invisible': [('reservation_type','in',('out'))]}"
|
||||||
@@ -312,7 +312,7 @@
|
|||||||
<field name="qty_invoiced" invisible="1" />
|
<field name="qty_invoiced" invisible="1" />
|
||||||
<field name="qty_to_invoice" invisible="1" />
|
<field name="qty_to_invoice" invisible="1" />
|
||||||
<field name="allowed_room_ids" invisible="1" />
|
<field name="allowed_room_ids" invisible="1" />
|
||||||
<field name="folio_payment_state" invisible="1" />
|
<field name="folio_payment_state" invisible="1" />
|
||||||
<!-- TODO: How to filter to avoid show False (generic) pricelist board when exist a specific pricelist board¿? -->
|
<!-- TODO: How to filter to avoid show False (generic) pricelist board when exist a specific pricelist board¿? -->
|
||||||
<field
|
<field
|
||||||
name="board_service_room_id"
|
name="board_service_room_id"
|
||||||
@@ -327,23 +327,19 @@
|
|||||||
colspan="2"
|
colspan="2"
|
||||||
nolabel="1"
|
nolabel="1"
|
||||||
placeholder="Reservation Notes"
|
placeholder="Reservation Notes"
|
||||||
/>
|
/>
|
||||||
<field name="agency_id" />
|
<field name="agency_id" />
|
||||||
<<<<<<< HEAD
|
|
||||||
<field
|
<field
|
||||||
name="channel_type_id"
|
name="channel_type_id"
|
||||||
attrs="{'readonly':[('agency_id','!=', False)]}"
|
attrs="{'readonly':[('agency_id','!=', False)]}"
|
||||||
/>
|
/>
|
||||||
=======
|
|
||||||
<field name="channel_type_id" />
|
|
||||||
>>>>>>> [IMP] Improvements
|
|
||||||
</group>
|
</group>
|
||||||
<group
|
<group
|
||||||
colspan="2"
|
colspan="2"
|
||||||
class="oe_subtotal_footer oe_right"
|
class="oe_subtotal_footer oe_right"
|
||||||
name="reservation_total"
|
name="reservation_total"
|
||||||
string="Amounts"
|
string="Amounts"
|
||||||
>
|
>
|
||||||
<field
|
<field
|
||||||
name="price_services"
|
name="price_services"
|
||||||
string="Only Services"
|
string="Only Services"
|
||||||
@@ -370,7 +366,7 @@
|
|||||||
for="price_room_services_set"
|
for="price_room_services_set"
|
||||||
string="Reservation Total"
|
string="Reservation Total"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<field
|
<field
|
||||||
name="price_room_services_set"
|
name="price_room_services_set"
|
||||||
nolabel="1"
|
nolabel="1"
|
||||||
@@ -380,7 +376,7 @@
|
|||||||
/>
|
/>
|
||||||
<field
|
<field
|
||||||
name="commission_percent"
|
name="commission_percent"
|
||||||
string="Commission percent (%)"
|
string="Commission percent (%)"
|
||||||
/>
|
/>
|
||||||
<field
|
<field
|
||||||
name="commission_amount"
|
name="commission_amount"
|
||||||
@@ -400,7 +396,7 @@
|
|||||||
placeholder="Credit Card Details"
|
placeholder="Credit Card Details"
|
||||||
colspan="2"
|
colspan="2"
|
||||||
attrs="{'invisible':[('folio_id','!=',False),('folio_pending_amount','<=',0)]}"
|
attrs="{'invisible':[('folio_id','!=',False),('folio_pending_amount','<=',0)]}"
|
||||||
/>
|
/>
|
||||||
</group>
|
</group>
|
||||||
<div class="oe_clear" />
|
<div class="oe_clear" />
|
||||||
</group>
|
</group>
|
||||||
@@ -419,17 +415,14 @@
|
|||||||
<page name="detail" string="Detail">
|
<page name="detail" string="Detail">
|
||||||
<field name="reservation_line_ids" nolabel="1">
|
<field name="reservation_line_ids" nolabel="1">
|
||||||
<tree create="false" delete="false" editable="bottom">
|
<tree create="false" delete="false" editable="bottom">
|
||||||
<field
|
<field
|
||||||
name="room_id"
|
name="room_id"
|
||||||
attrs="{'column_invisible': [('parent.splitted','=', False)]}"
|
attrs="{'column_invisible': [('parent.splitted','=', False)]}"
|
||||||
/>
|
/>
|
||||||
<field name="date" readonly="1" force_save="1" />
|
<field name="date" readonly="1" force_save="1" />
|
||||||
<field name="price" />
|
<field name="price" />
|
||||||
<field name="discount" />
|
<field name="discount" />
|
||||||
<field
|
<field name="move_line_ids" invisible="1" />
|
||||||
name="move_line_ids"
|
|
||||||
invisible="1"
|
|
||||||
/>
|
|
||||||
<field
|
<field
|
||||||
name="cancel_discount"
|
name="cancel_discount"
|
||||||
attrs="{'column_invisible': [('parent.state','!=','cancelled')]}"
|
attrs="{'column_invisible': [('parent.state','!=','cancelled')]}"
|
||||||
@@ -449,8 +442,8 @@
|
|||||||
decoration-success="is_board_service == True"
|
decoration-success="is_board_service == True"
|
||||||
>
|
>
|
||||||
<field name="is_board_service" invisible="1" />
|
<field name="is_board_service" invisible="1" />
|
||||||
<field name="company_id" invisible="1" />
|
<field name="company_id" invisible="0" />
|
||||||
<field name="pms_property_id" invisible="1" />
|
<field name="pms_property_id" invisible="0" />
|
||||||
<button
|
<button
|
||||||
type="object"
|
type="object"
|
||||||
class="oe_stat_button"
|
class="oe_stat_button"
|
||||||
@@ -490,8 +483,8 @@
|
|||||||
<field name="price_unit" />
|
<field name="price_unit" />
|
||||||
<field name="discount" />
|
<field name="discount" />
|
||||||
<field name="tax_ids" widget="many2many_tags" />
|
<field name="tax_ids" widget="many2many_tags" />
|
||||||
<field name="price_subtotal" optional="show" />
|
<field name="price_subtotal" />
|
||||||
<field name="price_tax" optional="show" />
|
<field name="price_tax" />
|
||||||
<field name="price_total" />
|
<field name="price_total" />
|
||||||
<field name="service_line_ids" invisible="1">
|
<field name="service_line_ids" invisible="1">
|
||||||
<tree string="Days">
|
<tree string="Days">
|
||||||
@@ -609,7 +602,7 @@
|
|||||||
<field name="allowed_room_ids" invisible="1" />
|
<field name="allowed_room_ids" invisible="1" />
|
||||||
<field name="partner_id" />
|
<field name="partner_id" />
|
||||||
<field name="room_type_id" optional="show" />
|
<field name="room_type_id" optional="show" />
|
||||||
<field name="adults" optional="show"/>
|
<field name="adults" optional="show" />
|
||||||
<field name="ratio_checkin_data" widget="progressbar" optional="show" />
|
<field name="ratio_checkin_data" widget="progressbar" optional="show" />
|
||||||
<field name="overbooking" invisible="1" />
|
<field name="overbooking" invisible="1" />
|
||||||
<field name="activity_ids" widget="list_activity" optional="show" />
|
<field name="activity_ids" widget="list_activity" optional="show" />
|
||||||
@@ -625,7 +618,7 @@
|
|||||||
<field name="tax_ids" invisible="1" />
|
<field name="tax_ids" invisible="1" />
|
||||||
<field name="price_subtotal" invisible="1" />
|
<field name="price_subtotal" invisible="1" />
|
||||||
<field name="price_total" />
|
<field name="price_total" />
|
||||||
<field name="folio_pending_amount" string="Folio Pending Amount" />
|
<field name="folio_pending_amount" string="Folio Pending Amount" />
|
||||||
<field
|
<field
|
||||||
name="state"
|
name="state"
|
||||||
decoration-success="state == 'onboard'"
|
decoration-success="state == 'onboard'"
|
||||||
|
|||||||
Reference in New Issue
Block a user