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

Hi all,

I want to get rid of the buttons (ex: compute button in sales order form) to calculate the total, subtotal. If I make changes to any field that is affecting the price, all the pricing should be calculated automatically without the help of the compute button. I mean that I don't want to use the compute button. It should work like a on_change method functionality in javascript. is it possible?

Thanks

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

OpenERP has got function fields. Function fields are a particular field calculated in relation to a particular python function that return the value of this fields. In your case you can use a function field to obtain the auto-calculated values.

Ảnh đại diện
Huỷ bỏ

and it can all be done with Python, so no need to look around in Javascript. But maybe you should have at least one button (Save or so), to make it clear how to end the work and save it.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
8153
2
thg 3 24
1970
1
thg 1 24
14332
2
thg 11 19
6912
2
thg 3 18
5163