mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
Merge branch '11.0' of https://github.com/hootel/hootel into 11.0
This commit is contained in:
@@ -240,13 +240,7 @@ class HotelReservation(models.Model):
|
|||||||
company_id = fields.Many2one(related='folio_id.company_id', string='Company', store=True, readonly=True)
|
company_id = fields.Many2one(related='folio_id.company_id', string='Company', store=True, readonly=True)
|
||||||
reservation_line_ids = fields.One2many('hotel.reservation.line',
|
reservation_line_ids = fields.One2many('hotel.reservation.line',
|
||||||
'reservation_id',
|
'reservation_id',
|
||||||
readonly=True, required=True,
|
required=True)
|
||||||
states={
|
|
||||||
'draft': [('readonly', False)],
|
|
||||||
'sent': [('readonly', False)],
|
|
||||||
'confirm': [('readonly', False)],
|
|
||||||
'booking': [('readonly', False)],
|
|
||||||
})
|
|
||||||
service_ids = fields.One2many('hotel.service', 'ser_room_line')
|
service_ids = fields.One2many('hotel.service', 'ser_room_line')
|
||||||
|
|
||||||
pricelist_id = fields.Many2one('product.pricelist',
|
pricelist_id = fields.Many2one('product.pricelist',
|
||||||
|
|||||||
@@ -294,7 +294,7 @@
|
|||||||
type="action" icon="fa-bolt"/>
|
type="action" icon="fa-bolt"/>
|
||||||
<field name="reservation_line_ids" nolabel="1">
|
<field name="reservation_line_ids" nolabel="1">
|
||||||
<tree create="false" delete="false" editable="bottom">
|
<tree create="false" delete="false" editable="bottom">
|
||||||
<field name="date" />
|
<field name="date" readonly="1" force_save="1"/>
|
||||||
<field name="price" />
|
<field name="price" />
|
||||||
<field name="discount" />
|
<field name="discount" />
|
||||||
<field name="cancel_discount"
|
<field name="cancel_discount"
|
||||||
|
|||||||
@@ -44,8 +44,9 @@
|
|||||||
<xpath expr="//field[@name='checkout']" position="attributes">
|
<xpath expr="//field[@name='checkout']" 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='reservation_line_ids']" position="attributes">
|
<xpath expr="//notebook/page[@name='days']/field[@name='reservation_line_ids']/tree/field[@name='price']" position="attributes">
|
||||||
<attribute name="attrs">{'readonly': [('is_from_ota','=',True),('able_to_modify_channel','=',False)]}</attribute>
|
<attribute name="attrs">{'readonly': [('parent.is_from_ota','=',True),('parent.able_to_modify_channel','=',False)]}</attribute>
|
||||||
|
<attribute name="force_save">True</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user