Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Edition multiple of list products

By
oussama
on 9/25/14, 7:22 AM 482 views

Hi

how to edit multiple products fields in tree view

 

Thanks

0

Vasanth

--Vasanth--
3458
| 5 3 8
Pondicherry, India
--Vasanth--
Vasanth
On 9/25/14, 7:50 AM

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

oussama
on 9/25/14, 9:04 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/25/14, 7:22 AM
Seen: 482 times
Last updated: 3/16/15, 8:10 AM