Odoo Help


6.1 Automatic Procurement Order , bad source location ?

on 9/19/13, 7:09 PM 2,811 views


I use OpenERP in my company, I would like to thanks the OpenERP creators and community.

But I have an issue with the mrp schudeler. I have created a bom with source location and a source destination. But it seems that the procurement order ignores the source location of the product which is includes ni the bom. On ly the location of final location of the finished product seems to be integrated.

I found this line in the Python code:

in Addons/Mrp/Procurement.py

def make_mo(self, cr, uid, ids, context=None):
            'location_src_id': procurement.location_id.id

It's a mistake for me because when the procurement is created, Python code verify if the bom exists in the function "check_produce_product" but this bom is doesn't set to the procurement. It's dommaging.

Moreover the stock move line is created with a first line by :

in Addons/Procurement/Procurement.py in def action_confirm(self, cr, uid, ids, context=None) function

source = procurement.location_id.id
if procurement.procure_method == 'make_to_order':
    source = procurement.product_id.product_tmpl_id.property_stock_procurement.id
id = move_obj.create(cr, uid, {
    'location_id': source,

And a second line is created somewhere that I haven't found but with a wrong source location.

Sorry, for my English, I'm a french man.

Anyone knows this bug in 6.1 version? I've found a french topic where the same problem is reported.

One more time, thanks for your work? and I hope I can help the community to solve this problem.

On 9/28/13, 6:19 AM

No one can help me?

About This Community

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/19/13, 7:09 PM
Seen: 2811 times
Last updated: 3/16/15, 8:10 AM