12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?xml version="1.0"?>
- <odoo>
- <data>
- <record id="product_template_base_meggit_view" model="ir.ui.view">
- <field name="name">product.template.base.meggit.form</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_only_form_view"/>
- <field name="arch" type="xml">
- <field name="barcode" position="after">
- <field name="segment_id" attrs="{'invisible': [('product_variant_count', '>', 1)]}" options="{'no_open': 1, 'no_create': 1}"/>
- <field name="platform" attrs="{'invisible': [('product_variant_count', '>', 1)]}"/>
- <field name="site" attrs="{'invisible': [('product_variant_count', '>', 1)]}"/>
- <field name="custom_sales_id" attrs="{'invisible': [('product_variant_count', '>', 1)]}"/>
- <field name="custom_sales" invisible="1"/>
- </field>
- </field>
- </record>
- <record id="product_normal_form_base_meggit_view" model="ir.ui.view">
- <field name="name">product.product.base.meggit.form</field>
- <field name="model">product.product</field>
- <field name="inherit_id" ref="product.product_normal_form_view"/>
- <field name="arch" type="xml">
- <field name="barcode" position="after">
- <field name="segment_id" options="{'no_open': 1, 'no_create': 1}"/>
- <field name="platform"/>
- <field name="site"/>
- <field name="custom_sales_id"/>
- <field name="custom_sales" invisible="1"/>
- </field>
- </field>
- </record>
- <record id="product_template_custom_sales_action" model="ir.actions.act_window">
- <field name="name">Products</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">product.template</field>
- <field name="view_mode">kanban,tree,form</field>
- <field name="view_type">form</field>
- <field name="view_id" ref="product.product_template_kanban_view"/>
- <field name="context">{"search_default_filter_to_sell":1}</field>
- <field name="domain">[('custom_sales','=',True)]</field>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">
- Click to define a new product.
- </p><p>
- You must define a product for everything you sell, whether it's a physical product, a consumable or a service you offer to customers.
- </p><p>
- The product form contains information to simplify the sale process: price, notes in the quotation, accounting data, procurement methods, etc.
- </p>
- </field>
- </record>
- </data>
- </odoo>
|