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.
To add a new field you can inherit the form and add a new field using xpath.
In Python :
First of all you have to inherit the model and add the field to corresponding model
from odoo import models, fields
_inherit = "model_name"
new_field_name = fields.Char(string="Cost")
<record id="give_an_id_for_record" model="ir.ui.view">
<field name="inherit_id" ref="external_id_of_original_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name_of_existing_field']" position="after">
Have a look at this video too : Additional field to existing view in odoo 10
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: 2/13/18, 11:18 AM|
|Seen: 220 times|
|Last updated: 2/18/18, 1:54 AM|