[ADD] Expedia comision rate field

This commit is contained in:
Jose Luis
2019-05-09 18:54:35 +02:00
parent 5c7903c99b
commit c86ff3f6f4
2 changed files with 16 additions and 1 deletions

View File

@@ -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.')

View File

@@ -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>