Hi
how to edit multiple products fields in tree view
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
you can edit the fields in the tree view by using editable="top" or editable="bottom".
For example in the mrp.bom module they used,
<record id="mrp_subproduct_view" model="ir.ui.view">
<field name="name">mrp.bom.sub.product</field>
<field name="model">mrp.bom</field>
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Byproducts" position="inside">
<field name="sub_products">
<tree string="Byproducts" editable="top">
<field name="product_id" on_change="onchange_product_id(product_id)"/>
<field name="product_uom" on_change="onchange_uom(product_id, product_uom)" groups="product.group_uom"/>
<field name="product_qty"/>
<field name="subproduct_type"/>
</tree>....
By this way you can edit...
thanks for your reponse but my objective is to selected for exemple 2 product and edit the product_quantity
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.