Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3951 Näkymät

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
Hylkää
Tekijä Paras vastaus

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

result = quantity * 0.15
Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
huhtik. 15
4914
7
toukok. 20
6929
0
huhtik. 16
3358
1
huhtik. 15
5459
2
huhtik. 15
6425