<field name="model">product.template</field>
<field name="arch" type="xml">
<search string="Product">
- <field name="name" string="Product"/>
+ <field name="name" string="Product" filter_domain="['|',('default_code','ilike',self),('name','ilike',self)]"/>
<filter string="Services" name="services" domain="[('type','=','service')]"/>
<filter string="Consumable" name="consumable" icon="terp-accessories-archiver" domain="[('type','=','consu')]" help="Consumable products"/>
<separator/>
<div class="oe_title" style="width: 390px;">
<label class="oe_edit_only" for="name" string="Product Name"/>
<h1><field name="name" class="oe_inline"/></h1>
- </div>
- <div class="oe_left" name="options" groups="base.group_user">
- <div>
- <field name="sale_ok"/>
- <label for="sale_ok"/>
+ <div name="options" groups="base.group_user">
+ <div>
+ <field name="sale_ok"/>
+ <label for="sale_ok"/>
+ </div>
</div>
</div>
</div>
<field name="mode">primary</field>
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="arch" type="xml">
- <field name="name" position="replace">
- <field name="name" string="Product" filter_domain="['|',('default_code','ilike',self),('name','ilike',self)]"/>
- </field>
<field name="product_variant_ids" position="replace">
<field name="attribute_value_ids"/>
</field>
<p class="oe_view_nocontent_create">
Click to define a new product.
</p><p>
- You must define a product for everything you buy or sell,
- whether it's a physical product, a consumable or service.
+ 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>
<p class="oe_view_nocontent_create">
Click to define a new product.
</p><p>
- You must define a product for everything you buy or sell,
- whether it's a physical product, a consumable or service.
+ 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>
<field string="List of Variants" name="product_variant_count" widget="statinfo" />
</button>
</div>
- <field name="attribute_line_ids" widget="one2many_list">
+ <field name="attribute_line_ids" widget="one2many_list" context="{'show_attribute': False}">
<tree string="Variants" editable="bottom">
<field name="attribute_id"/>
<field name="value_ids" widget="many2many_tags" options="{'no_create_edit': True}" domain="[('attribute_id', '=', attribute_id)]" context="{'default_attribute_id': attribute_id}"/>
<field name="view_type">form</field>
<field name="view_id" ref="product_template_kanban_view"/>
<field name="context">{"search_default_filter_to_sell":1}</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>
<menuitem action="product_template_action"
<field name="uom_type" on_change="onchange_type(uom_type)"/>
<label for="factor"/>
<div>
- <field name="factor" attrs="{'invisible':[('uom_type','!=','smaller')]}"/>
- <field name="factor_inv" attrs="{'invisible':[('uom_type','!=','bigger')]}"/>
+ <field name="factor"
+ digits="[42,5]"
+ attrs="{'invisible':[('uom_type','!=','smaller')],
+ 'readonly':[('uom_type','=','bigger')]}"/>
+ <field name="factor_inv"
+ digits="[42,5]"
+ attrs="{'invisible':[('uom_type','!=','bigger')],
+ 'readonly':[('uom_type','!=','bigger')]}"/>
<p attrs="{'invisible':[('uom_type','!=','smaller')]}" class="oe_grey">
e.g: 1 * (reference unit) = ratio * (this unit)
</p>