Community mailing list archives

Re: How to BoM rounded !

Mustafa Al Saeedi
- 02/27/2016 01:34:47

Thank you Omprakash for your reply

As I see from the code above it's related to sales order as I understand

But my situation required rounded BoM items to reduce extra materials against same price

Moreover I not odoo geek so please guide me where can I find files to modify

With highly appreciated to you


On 27 Feb 2016 08:08, "Omprakash Maurya" <> wrote:
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.

Post to: