[FIX] inhetired wubook views

This commit is contained in:
Dario Lodeiros
2019-02-03 11:24:25 +01:00
parent 5999a705e8
commit 759da2c978

View File

@@ -13,7 +13,6 @@
<field name="is_from_ota" readonly="True" invisible="True"/> <field name="is_from_ota" readonly="True" invisible="True"/>
</group> </group>
</xpath> </xpath>
<xpath expr="//field[@name='partner_internal_comment']" position="after"> <xpath expr="//field[@name='partner_internal_comment']" position="after">
<field name="able_to_modify_channel" invisible="True"/> <field name="able_to_modify_channel" invisible="True"/>
<!-- <field name="customer_notes" readonly="1" <!-- <field name="customer_notes" readonly="1"
@@ -21,7 +20,6 @@
nolabel="1" colspan="2" nolabel="1" colspan="2"
/> --> /> -->
</xpath> </xpath>
<xpath expr="//page[@name='days']" position="after"> <xpath expr="//page[@name='days']" position="after">
<page name="connector" string="Channel Connector"> <page name="connector" string="Channel Connector">
<group string="Hotel Channel Bindings"> <group string="Hotel Channel Bindings">
@@ -33,13 +31,11 @@
</group> </group>
</page> </page>
</xpath> </xpath>
<!-- ALLOW ONLY-READ --> <!-- ALLOW ONLY-READ -->
<xpath expr="//field[@name='adults']" position="attributes"> <xpath expr="//field[@name='adults']" position="attributes">
<attribute name="attrs">{'readonly': [('is_from_ota','=',True),('able_to_modify_channel','=',False)]}</attribute> <attribute name="attrs">{'readonly': [('is_from_ota','=',True),('able_to_modify_channel','=',False)]}</attribute>
</xpath> </xpath>
<xpath expr="//field[@name='room_type_id']" position="attributes"> <xpath expr="//field[@name='room_type_id']" position="attributes">
<!-- attribute name="attrs">{'readonly': [('channel_reservation_id','!=',False),('able_to_modify_channel','=',False)]}</attribute-->
<attribute name="attrs">{'readonly': [('is_from_ota','=',True),('able_to_modify_channel','=',False)]}</attribute> <attribute name="attrs">{'readonly': [('is_from_ota','=',True),('able_to_modify_channel','=',False)]}</attribute>
</xpath> </xpath>
<xpath expr="//field[@name='children']" position="attributes"> <xpath expr="//field[@name='children']" position="attributes">
@@ -66,6 +62,15 @@
<xpath expr="//field[@name='checkout']" position="after"> <xpath expr="//field[@name='checkout']" position="after">
<!-- field name="origin_sale"/--> <!-- field name="origin_sale"/-->
</xpath> </xpath>
<xpath expr="//field[@name='checkout']" position="after">
<field name="is_from_ota" invisible="1"/>
</xpath>
<xpath expr="//field[@name='checkout']" position="attributes">
<attribute name="attrs">{'readonly': [('is_from_ota', '!=', False)]}</attribute>
</xpath>
<xpath expr="//field[@name='checkin']" position="attributes">
<attribute name="attrs">{'readonly': [('is_from_ota', '!=', False)]}</attribute>
</xpath>
</field> </field>
</record> </record>