Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3130 Lượt xem
Hello,
In Odoo Studio : In the sale module, I created a "commission%" field to set a default value throughout the sale. In each article line, I created a "com%" field. I would like the default value field "com%" to be the field "comisiion%". But I want to be able to also modify the "com%" field on 1 line if necessary
screenshot : http://nas.cip-sa.be/temp/comission.jpg
Thank you for your help



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

Hi,

If you need to set a default value for the field 'com%' based on the field 'commission%', you can achieve this by adding a compute function for 'com%' with a dependency on 'commission%'. For more details about compute functions in Odoo, you can refer the blog:

https://www.cybrosys.com/odoo/odoo-books/odoo-16-studio/define-compute-method/

Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 24
3422
1
thg 3 24
1546
3
thg 1 24
2224
3
thg 11 23
1858
2
thg 6 23
4601