Community mailing list archives

community@mail.odoo.com

Re: How to BoM rounded !

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

res[order.id]['amount_total'] =round( res[order.id]['amount_untaxed'] + res[order.id]['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 <safi2266@gmail.com> 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

 SaFi

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




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