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 to a form in XML you just type:
<record model="ir.ui.view" id="sale_margin_percent_3">
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']/tree//field[@name='price_unit']" position="after">
<field name="sale_margin_percent" groups="base.group_user"/>
which would add "sale_margin_percent" field after "price_unit" in "order_line".
So far, so good.
However, what would you need to add to specify that the new field has a given "on_change" attribute?
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: 7/25/15, 11:19 AM|
|Seen: 522 times|
|Last updated: 7/25/15, 1:13 PM|