mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
* [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
34 lines
1.9 KiB
XML
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>
|