mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
57 lines
2.7 KiB
XML
57 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record id="res_users_view_form" model="ir.ui.view">
|
|
<field name="name">User Properties fields</field>
|
|
<field name="model">res.users</field>
|
|
<field name="inherit_id" ref="base.view_users_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath
|
|
expr="//page[@name='references']/group[@name='messaging']"
|
|
position="after"
|
|
>
|
|
<group>
|
|
<group string="Configurable Availability Rules">
|
|
<field
|
|
name="availability_rule_field_ids"
|
|
widget="many2many_tags"
|
|
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'))]"
|
|
/>
|
|
</group>
|
|
<group string="Client API configuration">
|
|
<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="url_endpoint_prices"
|
|
string="Prices Endpoint"
|
|
help="URL endpoint to get prices"
|
|
attrs="{'invisible': [('pms_api_client', '=', False)]}"
|
|
/>
|
|
<field
|
|
name="url_endpoint_availability"
|
|
string="Availability Endpoint"
|
|
help="URL endpoint to get availability"
|
|
attrs="{'invisible': [('pms_api_client', '=', False)]}"
|
|
/>
|
|
<field
|
|
name="url_endpoint_rules"
|
|
string="Avail Rules Endpoint"
|
|
help="URL endpoint to get reservations"
|
|
attrs="{'invisible': [('pms_api_client', '=', False)]}"
|
|
/>
|
|
<field
|
|
name="external_public_token"
|
|
string="Public Token"
|
|
help="URL endpoint to get rules"
|
|
attrs="{'invisible': [('pms_api_client', '=', False)]}"
|
|
/>
|
|
</group>
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|