[ADD]pms_api_rest: product pms enabled configuration views

This commit is contained in:
Darío Lodeiros
2022-11-20 10:35:34 +01:00
parent 66b5b286fa
commit 5c07b1f8f0

View File

@@ -5,15 +5,22 @@
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view" />
<field name="arch" type="xml">
<xpath expr="//field[@name='company_id']" position="after">
<field name="is_pms_available" />
<field
name="pms_property_ids"
widget="many2many_tags"
options="{'no_create': True,'no_open': True}"
attrs="{'invisible': [('is_pms_available', '=', False)]}"
/>
</xpath>
<xpath expr="//page[@name='sales']" position="before">
<page string="Service">
<page
string="PMS Service"
attrs="{'invisible': [('is_pms_available', '=', False)]}"
>
<group colspan="4">
<group>
<field
name="pms_property_ids"
widget="many2many_tags"
options="{'no_create': True,'no_open': True}"
/>
<field name="is_extra_bed" />
<field name="is_crib" />
<field name="daily_limit" />