Community mailing list archives

community@mail.odoo.com

Re: How to BoM rounded !

by
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

Regards

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

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