we use odoo 11.
model.py
product_id = fields.Many2one('product.product', string="piece")
price_unit = fields.Float('Unit Price', default=0.0)
view.xml
<page string="Replacement piece">
<field name="product_ids">
<tree editable="bottom">
<field name="product_id"/>
<field name="price_unit"/>
</tree>
</field>
</page>
please help me.
Thanks
Hi Avinash, Thanks. You helped a lot
My Pleasure
Hello Sana, Sorry. There is an Update in the answer. Please try this. Don't do the previous answer.