Odoo modules related to events management
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="product_variant_easy_edit_view_inherit" model="ir.ui.view">
<field name="name">product.product.view.form.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_variant_easy_edit_view" />
<field name="arch" type="xml">
<field name="id" position="after">
<field name="detailed_type" invisible="1" />
</field>
<group name="product_variant_images" position="after">
<group name="event" string="Event sale" attrs="{'invisible': [('detailed_type','!=','event')]}">
<field name="is_event_deposit" />
<field name="balance_variant_id" options="{'no_create': 1}"
attrs="{'invisible':[('is_event_deposit','=',False)],'required':[('is_event_deposit','=',True)]}" />
</group>
</group>
</field>
</record>
<!-- <record id="product_normal_form_view_inherit" model="ir.ui.view">
<field name="name">product.product.view.form.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view" />
<field name="arch" type="xml">
<group name="description" position="after">
<group name="event" string="Event sale" attrs="{'invisible': [('detailed_type','!=','event')]}">
<field name="is_event_deposit" />
<field name="balance_variant_id" options="{'no_create': 1}" />
</group>
</group>
</field>
</record> -->
</odoo>