Odoo Help

0

Define a tax in function of product_qty

By
José
on 4/23/15, 6:55 AM 535 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! 

1
José
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.

Register

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)

Stats

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