Odoo Help

Welcome!

This community 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.

0

Round Off Value to Purchase & Sale Invoice

By
BDM - Skytech Technologies
on 4/20/15, 3:28 AM 470 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,

0
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

n=12356754.44460

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/20/15, 3:28 AM
Seen: 470 times
Last updated: 4/20/15, 6:23 AM