Odoo Help

8

How do I increase the number of decimals of a tax type?

By
Antonin Bourguignon (abo)
on 2/5/13, 9:05 AM 1,866 views

For instance: 0.09975 which should be 9.975% in Quebec, but currently rounds to 9.98, causing calculations to be off.

8

In order to avoid the annoying decimal rounding, open the tax in form view. In the Tax Definition tab, Tax Computation section, set the Tax Type to Python Code.

Following the example aboe, in the Python Code field, enter:

result = price_unit * 0.09975

And in the Python Code (reverse) field:

result = price_unit / 0.09975

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: 2/5/13, 9:05 AM
Seen: 1866 times
Last updated: 3/16/15, 8:10 AM