This question has been flagged
2 Replies
4662 Views

Hi,

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.

Avatar
Discard
Author Best Answer

No one can help me?

Avatar
Discard