mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] Expedia comision rate field
This commit is contained in:
@@ -11,3 +11,14 @@ class Inherit_res_company(models.Model):
|
||||
'Unique ID for DataBI', default=0,
|
||||
help='It must be unique to be able to identify the hotel, \
|
||||
within a hotel group.')
|
||||
expedia_rate = fields.Integer(
|
||||
'Expedia Rate DataBI',
|
||||
default=18, required=True, digits=(2),
|
||||
help='It is the commission percentage negotiated with the \
|
||||
Expedia company, expressed with two digits. \
|
||||
Example: 18 = 18% commission.')
|
||||
data_bi_days = fields.Integer(
|
||||
'Days to download',
|
||||
default=60, required=True, digits=(3),
|
||||
help='Number of days, which are downloaded data, \
|
||||
backwards, by default are 60 days to download.')
|
||||
|
||||
@@ -10,7 +10,11 @@
|
||||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='cardex_warning']" position="after">
|
||||
<field name="id_hotel" />
|
||||
<group string="DataBi Hotel Services" name="hotel_databi">
|
||||
<field name="id_hotel" />
|
||||
<field name="data_bi_days" />
|
||||
<field name="expedia_rate" />
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user