تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4159 أدوات العرض

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?

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 16
5151
2
أكتوبر 16
8967
2
يوليو 15
6352
2
أبريل 25
1213
1
نوفمبر 24
2064