Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3930 Visualizações

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
Cancelar
Autor Melhor resposta

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

result = quantity * 0.15
Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
abr. 15
4859
7
mai. 20
6855
0
abr. 16
3310
1
abr. 15
5433
2
abr. 15
6373