Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3142 Zobrazení
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



Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
úno 24
3427
1
bře 24
1553
3
led 24
2235
3
lis 23
1864
2
čvn 23
4613