Odoo Help


Trying to locate "purchase_price" field in sale.order.form view

on 6/21/15, 12:12 PM 745 views

I am trying to modify "sale.order.form" view.

Specifically I want to setup an "on_change" event when "purchase_price" field is modified.

Despite I find all other fields in "sale.order.form" view, I can't find in whch view "purchase_price" is located.

Any tip on how to look for it or any direct answer to know where such field is located?

On 6/22/15, 3:08 AM

you can look for the "purchase_price" field in the "sale_margin" module.

Hiral Patel (hip)
On 6/22/15, 5:14 AM

First go upto the path (using cd command) where you have kept Odoo code. Then use following command from terminal to find in all xml files:

grep -nr "purchase_price" --include=*.xml

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/21/15, 12:12 PM
Seen: 745 times
Last updated: 6/28/15, 6:58 AM