コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3138 ビュー
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



アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
2
2月 24
3426
1
3月 24
1552
3
1月 24
2230
3
11月 23
1863
2
6月 23
4613