stock_moves wrong in mrp.production

Bug #596128 reported by Multics
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Hi folks,

I'm researching mrp module in trunk version, and when I use a mrp.production the order the stock_moves seem incorrects in de Picking List field (picking_id).
First, the picking_id has only one stock_move and it's correct because I have one product in my BoM.
Then, when I execute Comsume Products or Scrap Products in Products to Consume Widget, the result is many stock_moves generated in the
picking_id (Picking List), each one with the same quantity of the all raw materials, I think this is incorrect because the quantity for products in the stock_locations (ubications) could be inconsistents.

I attach some pictures:
1. The original mrp order
2. The origianl mrp picking_id Picking List.
3. The mrp order when I register consume of material
4. The picking_id of the orden with a new stock_move, that i think wrong.

Thanks for you help.

Best regards.

Revision history for this message
Multics (gustavocordero) wrote :
Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Multics,

In response to your post, I followed the steps as you have posted.
Created a manufacturing order with a product along with a bom. Fortunately, the picking_id has correct stock_moves for us.

The screen-shot which you have sent, we did not have multiple stock_moves generated for the same quantity of raw materials as I could see.
It works very normal at our end.
I would like you to kindly update your trunk code with the latest revisions and re-check.

I have only installed mrp module and tested.
Please let me know how to reach out to the error.
We will look out for a solution.

Thank you.

Revision history for this message
Multics (gustavocordero) wrote : Re: [Bug 596128] Re: stock_moves wrong in mrp.production

Hello JMA

Thanks for you reply,

I will update the latest trunk code, but would like to share with you a
solution found to this problem, which was to modify some of the code
module stock as shown below where adding a new line in the copy method.

class StockMove(osv.osv):
    _inherit = 'stock.move'

    def copy(self, cr, uid, id, default=None, context=None):
        default = default or {}
        default['procurements'] = []
        default['move_dest_id_lines'] = []
        return super(StockMove, self).copy(cr, uid, id, default,
context)

StockMove()

Best Regards.

El mié, 28-07-2010 a las 06:40 +0000, JMA(Open ERP) escribió:
> Hello Multics,
>
> In response to your post, I followed the steps as you have posted.
> Created a manufacturing order with a product along with a bom. Fortunately, the picking_id has correct stock_moves for us.
>
> The screen-shot which you have sent, we did not have multiple stock_moves generated for the same quantity of raw materials as I could see.
> It works very normal at our end.
> I would like you to kindly update your trunk code with the latest revisions and re-check.
>
> I have only installed mrp module and tested.
> Please let me know how to reach out to the error.
> We will look out for a solution.
>
> Thank you.
>

--
Ing. Gustavo Cordero
Servicios y Productos Informáticos Multics Cía. Ltda.
Santiago Carrasco 1-66 y Rafael Torres Beltrán
Telf: 4092154 Cel: 084547779

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

Hello,

I have checked this issue with latest trunk but did not face any problem.
So I am closing this issue, you can reopen this in future if you will face similar problem again.

Thanks.

Changed in openobject-addons:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.