mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD]pms_api_rest: OTA API configurations
This commit is contained in:
@@ -90,6 +90,22 @@
|
||||
</group>
|
||||
</group>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='default_departure_hour']" position="after">
|
||||
<group string="OTAs API Configuration">
|
||||
<field name="ota_property_settings_ids">
|
||||
<tree name="OTAs" editable="bottom">
|
||||
<field name="pms_property_id" invisible="1" />
|
||||
<field name="agency_id" options="{'no_create': True}" />
|
||||
<field name="pms_api_alowed_payments" />
|
||||
<field
|
||||
name="pms_api_payment_journal_id"
|
||||
options="{'no_create': True}"
|
||||
/>
|
||||
<field name="pms_api_payment_identifier" />
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
||||
@@ -17,6 +17,18 @@
|
||||
options="{'no_create': True}"
|
||||
domain="['&',('model_id', '=', 'pms.availability.plan.rule'), ('name', 'in', ('min_stay', 'max_stay', 'quota', 'max_stay_arrival', 'closed_arrival', 'closed', 'closed_departure', 'min_stay_arrival', 'max_avail'))]"
|
||||
/>
|
||||
<field
|
||||
name="pms_api_client"
|
||||
string="PMS API Client"
|
||||
help="This user is used to PMS API's client (channel managers, precheckin apps, booking engines, etc.)"
|
||||
/>
|
||||
<field
|
||||
name="pms_api_payment_journal_id"
|
||||
string="PMS API Payment Journal"
|
||||
domain="[('type', '=', 'bank')]"
|
||||
help="This journal is used to PMS API's client (channel managers, precheckin apps, booking engines, etc.)"
|
||||
attrs="{'invisible': [('pms_api_client', '=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user