Files
pms/hotel_channel_connector/views/inherited_hotel_folio_views.xml
QS5ELkMu 8b53b6b624 Calendar Improvements (#89)
* [IMP] Allow change adults resizing reservation on calendar

* [IMP] Board Services

* [WIP] Board Service

* [IMP] Calendar Buttons & Default Options

* [WIP] Availability

* [WIP] Availability

* [WIP] Availability

* [IMP] Calendar buttons
2019-01-30 12:42:36 +01:00

34 lines
1.9 KiB
XML

<?xml version="1.0"?>
<odoo>
<record id="hotel_folio_view_form" model="ir.ui.view">
<field name="model">hotel.folio</field>
<field name="inherit_id" ref="hotel.hotel_folio_view_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_internal_comment']" position="before">
<field name="has_channel_reservations" invisible="True" />
<field name="customer_notes" readonly="True" attrs="{'invisible':[('has_channel_reservations', '=', False)]}"/>
</xpath>
<!--xpath expr="//notebook/page/field[@name='room_lines']/tree/field[@name='checkout']" position="after">
<field name="is_from_ota" invisible="1"/>
</xpath>
<xpath expr="//notebook/page/field[@name='room_lines']/tree/field[@name='checkout']" position="attributes">
<attribute name="attrs">{'readonly': [('is_from_ota', '!=', False)]}</attribute>
</xpath>
<xpath expr="//notebook/page/field[@name='room_lines']/tree/field[@name='checkin']" position="attributes">
<attribute name="attrs">{'readonly': [('is_from_ota', '!=', False)]}</attribute>
</xpath>
<xpath expr="//notebook/page/field[@name='room_lines']/form/sheet/header/field[@name='folio_id']" position="after">
<field name="is_from_ota" invisible="1"/>
</xpath>
<xpath expr="//notebook/page/field[@name='room_lines']/form/sheet/h3/field[@name='checkout']" position="attributes">
<attribute name="attrs">{'readonly': [('is_from_ota', '!=', False)]}</attribute>
</xpath>
<xpath expr="//notebook/page/field[@name='room_lines']/form/sheet/h3/field[@name='checkin']" position="attributes">
<attribute name="attrs">{'readonly': [('is_from_ota', '!=', False)]}</attribute>
</xpath-->
</field>
</record>
</odoo>