mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
51 lines
1.9 KiB
XML
51 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record id="product_template_view_form" model="ir.ui.view">
|
|
<field name="name">view.product.template.form.inherited</field>
|
|
<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="PMS Service"
|
|
attrs="{'invisible': [('is_pms_available', '=', False)]}"
|
|
>
|
|
<group colspan="4">
|
|
<group>
|
|
<field name="is_extra_bed" />
|
|
<field name="is_crib" />
|
|
<field name="daily_limit" />
|
|
</group>
|
|
<group>
|
|
<field name="per_day" />
|
|
<field name="per_person" />
|
|
<field
|
|
name="consumed_on"
|
|
widget="radio"
|
|
attrs="{'invisible': [('per_day','!=',True)]}"
|
|
/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem
|
|
name="Services"
|
|
id="menu_services_pms"
|
|
action="product.product_template_action"
|
|
sequence="15"
|
|
parent="pms.pms_services_menu"
|
|
/>
|
|
</odoo>
|