[FIX] Readonly reservation lines date and wubook price

This commit is contained in:
Dario Lodeiros
2019-05-10 12:44:59 +02:00
parent bf60964bec
commit 6720685885
2 changed files with 4 additions and 3 deletions

View File

@@ -294,7 +294,7 @@
type="action" icon="fa-bolt"/>
<field name="reservation_line_ids" nolabel="1">
<tree create="false" delete="false" editable="bottom">
<field name="date" />
<field name="date" readonly="1" force_save="1"/>
<field name="price" />
<field name="discount" />
<field name="cancel_discount"

View File

@@ -44,8 +44,9 @@
<xpath expr="//field[@name='checkout']" position="attributes">
<attribute name="attrs">{'readonly': [('is_from_ota','=',True),('able_to_modify_channel','=',False)]}</attribute>
</xpath>
<xpath expr="//field[@name='reservation_line_ids']" position="attributes">
<attribute name="attrs">{'readonly': [('is_from_ota','=',True),('able_to_modify_channel','=',False)]}</attribute>
<xpath expr="//notebook/page[@name='days']/field[@name='reservation_line_ids']/tree/field[@name='price']" position="attributes">
<attribute name="attrs">{'readonly': [('parent.is_from_ota','=',True),('parent.able_to_modify_channel','=',False)]}</attribute>
<attribute name="force_save">True</attribute>
</xpath>
</field>
</record>