Odoo Help

Welcome!

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

1

6.1 Automatic Procurement Order , bad source location ?

By
MABB
on 9/19/13, 7:09 PM 2,314 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.

0
MABB
On 9/28/13, 6:19 AM

No one can help me?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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