Odoo Help


Round Off Value to Purchase & Sale Invoice

BDM - Skytech Technologies
on 4/20/15, 3:28 AM 1,120 views

In Indian Taxation, we usually create a Round off Value of any Gross Amount in the Invoice. But in Odoo we are unable to round off the value. So request you to suggest how to create a Round off Amount which leads to Round Value in Total Amount Column,

Demirel yakito
On 4/20/15, 6:23 AM

try this eg: try any number here variable n.

from decimal import Decimal, ROUND_HALF_UP


print Decimal(str(n)).quantize(Decimal('.01'),rounding=ROUND_HALF_UP)

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/20/15, 3:28 AM
Seen: 1120 times
Last updated: 4/20/15, 6:23 AM