Odoo Help


Define a tax in function of product_qty

on 4/23/15, 6:55 AM 651 views

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! 

On 4/23/15, 9:58 AM

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

result = quantity * 0.15

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/23/15, 6:55 AM
Seen: 651 times
Last updated: 4/23/15, 9:58 AM