Community mailing list archives

Re: How to BoM rounded !

- 02/27/2016 00:05:57
Hello Mustafa,
You can code like this

res[]['amount_total'] =round( res[]['amount_untaxed'] + res[]['amount_tax'])

and get the solution of your problem
if 10.49 will rounded to 10
10.51 will rounded to 11

On Sat, Feb 27, 2016 at 8:08 AM, Mustafa Al Azaam <> wrote:
Dear odoo community,

In BoM on MRP module there is a function to round up the product quantity by placing factor number, When I set 1.00 I got the product quantity rounded up to highest integer, this unwanted behavior regarding to my situation
because this will add extra cost of material against same price, so I wonder is it possible to get rounded like below

10.49 will rounded to 10
10.51 will rounded to 11
and so on

I forget to mention that I use a piece as UoM so that the factor must be 1.00

Thank you in advanced


Post to:

Thanks & Regards
Om Prakash Maurya
Odoo(OpenERP) Developer
Saarthi Software Technology Pvt. Ltd.