1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <!-- Avoid Menu of product Variants -->
- <delete model="ir.ui.menu" search="[('id','=',ref('product.menu_products'))]"/>
- <menuitem id="menu_products2" action="product.product_normal_action_sell" parent="base.menu_product" groups="group_no_variants" sequence="10"/>
- <delete model="ir.ui.menu" search="[('id','=',ref('stock.menu_product_variant_config_stock'))]"/>
- <menuitem
- action="product.product_normal_action" id="menu_product_variant_config_stock2"
- parent="stock.menu_product_in_config_stock" groups="group_no_variants" sequence="2"/>
- <!-- Avoid page of product Variants -->
- <record id="product_template_only_form_view_avoid_variants" model="ir.ui.view">
- <field name="name">product.template.product.form.avoid.variants</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_only_form_view"/>
- <field name="arch" type="xml">
- <page name="variants" position="attributes">
- <attribute name="groups">hide_product_variants.group_no_variants</attribute>
- </page>
- </field>
- </record>
- <record id="product.product_template_action" model="ir.actions.act_window">
- <field name="name">Products</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">product.product</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>
- </record>
- <record id="purchase.product_normal_action_puchased" model="ir.actions.act_window">
- <field name="name">Products</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">product.product</field>
- <field name="view_type">form</field>
- <field name="view_mode">kanban,tree,form</field>
- <field name="context">{"search_default_filter_to_purchase":1}</field>
- <field name="search_view_id" eval="False"/> <!-- Force empty -->
- <field name="view_id" eval="False"/> <!-- Force empty -->
- <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 purchase, whether
- it's a physical product, a consumable or services you buy to
- subcontractants.
- </p><p>
- The product form contains detailed information to improve the
- purchase process: prices, procurement logistics, accounting data,
- available suppliers, etc.
- </p>
- </field>
- </record>
- <record id="product_normal_form_view_rev_name" model="ir.ui.view">
- <field name="name">product.product.form.rev_name</field>
- <field name="model">product.product</field>
- <field name="inherit_id" ref="product.product_normal_form_view"/>
- <field name="arch" type="xml">
- <field name="name" position="replace">
- <field name="name"/>
- </field>
- <field name="product_tmpl_id" position="replace">
- <field name="product_tmpl_id" invisible="1" required="0"/>
- </field>
- </field>
- </record>
- <record id="product_template_kanban_view_hide_variants" model="ir.ui.view">
- <field name="name">Product.template.product.kanban.hide_variants</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_kanban_view"/>
- <field name="arch" type="xml">
- <xpath expr="/kanban/templates/t/div/div/a" position="replace"/>
- </field>
- </record>
- </data>
- </openerp>
|