This question has been flagged
1 Reply
3177 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,

Avatar
Discard
Best Answer

try this eg: try any number here variable n.

from decimal import Decimal, ROUND_HALF_UP

n=12356754.44460

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

Avatar
Discard