Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4153 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 16
5147
2
thg 10 16
8965
2
thg 7 15
6347
2
thg 4 25
1210
1
thg 11 24
2057