mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Readonly reservation lines date and wubook price
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user