Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
3942 Ansichten

Hello, I have Odoo 8. In my situation, I have to define a tax in function of the product quantity in the purchase order. The tax is "$0.15 for each unit purchased". If I purchase 10 units, I have to pay $1.5.

How can I define this tax? Thanks! 

Avatar
Verwerfen
Autor Beste Antwort

I found the solution. Create a new Tax, with "Tax type = Python code" and this code:

result = quantity * 0.15
Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Apr. 15
4899
7
Mai 20
6900
0
Apr. 16
3340
1
Apr. 15
5454
2
Apr. 15
6405