Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3932 Vues

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
Ignorer
Auteur Meilleure réponse

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

result = quantity * 0.15
Avatar
Ignorer
Publications associées Réponses Vues Activité
1
avr. 15
4865
7
mai 20
6861
0
avr. 16
3315
1
avr. 15
5442
2
avr. 15
6379