Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Inherit product.product and add field which you want to add.
then inherit the view of purchase order form which is purchase_order_form and then in the tree view of order_line field add your field.
_inherit = 'product.product'
custom_field = fields.Float('Field Name')
<record id="inherit_purchase_order_form_view" model="ir.ui.view">
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<xpath expr="/form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='name']" position="after">
Hope it works for you.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/6/16, 11:47 PM|
|Seen: 407 times|
|Last updated: 1/7/16, 3:09 AM|