production orders waiting raw materials can not be cancelled

Bug #498033 reported by Ana Juaristi Olalde
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Status tracked in Trunk
5.0
Confirmed
Medium
Jay Vora (Serpent Consulting Services)
Trunk
Fix Released
Medium
OpenERP R&D Addons Team 2

Bug Description

I have taken the following issue from forum: http://openobject.com/forum/topic13658.html where effiejayx says: -----------------------
I created a producttion order and I cannot delet it. it is in confirmed state waiting for resources and I cannot delete it. I have been able to delete the purchace orders for the resources.
In the production order's details I can see movements but I cannot delete any of those movements because only "draft" moves can be deleted, which leaves me to believe that those are confirmed as well.
-----------------------

I just tested the case and I can reproduce it. Production orders can be cancelled on whatever intermediate status they are, except when they are waiting for goods. It doesn't seem to be correct having the possibility of cancelling the order once raw material for production are received, and not before.

I think cancelling an order on this status should cancel or even delete the related planified stock moves and production order related purchase or procurement orders and even "child" productions orders. So this means, cancelling on cascade all related objects.

Additionaly: If you cancel a production order just started, the related movements from stock to production are cancelled wich is correct but if materials come from a child location, raw materials stay on parent stock location. I think they should come back to their original location, where they come from.

Best regards:

Ana

Related branches

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Ana,

Production order will be cancelled when you cancel the concerned picking.

Try cancelling the picking and then, reload the production order,you will be able to cancel it.

Thanks.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote : Re: [Bug 498033] Re: production orders waiting raw materials can not be cancelled

Jay... maybe it doesn't exists a related picking. See production orders
workflow:

Draft --> Order can be cancelled

Confirm order, it passes to Waiting material --> Can not be cancelled. If
you realize you really don't want producing, maybe you will not send
purchase order to supplier, so you will have not related picking. The only
way to cancel the order on this status is forcing disposability and then
cancelling.

If you force disposability or materials, order passes to Ready to produce
where Order can be cancelled and deleted.

2009/12/23 Jay (Open ERP) <email address hidden>

> Hello Ana,
>
> Production order will be cancelled when you cancel the concerned
> picking.
>
> Try cancelling the picking and then, reload the production order,you
> will be able to cancel it.
>
> Thanks.
>
> ** Changed in: openobject-addons
> Status: New => Incomplete
>
> --
> production orders waiting raw materials can not be cancelled
> https://bugs.launchpad.net/bugs/498033
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in OpenObject Addons Modules: Incomplete
>
> Bug description:
> I have taken the following issue from forum:
> http://openobject.com/forum/topic13658.html where effiejayx says:
> -----------------------
> I created a producttion order and I cannot delet it. it is in confirmed
> state waiting for resources and I cannot delete it. I have been able to
> delete the purchace orders for the resources.
> In the production order's details I can see movements but I cannot delete
> any of those movements because only "draft" moves can be deleted, which
> leaves me to believe that those are confirmed as well.
> -----------------------
>
> I just tested the case and I can reproduce it. Production orders can be
> cancelled on whatever intermediate status they are, except when they are
> waiting for goods. It doesn't seem to be correct having the possibility of
> cancelling the order once raw material for production are received, and not
> before.
>
> I think cancelling an order on this status should cancel or even delete the
> related planified stock moves and production order related purchase or
> procurement orders and even "child" productions orders. So this means,
> cancelling on cascade all related objects.
>
> Additionaly: If you cancel a production order just started, the related
> movements from stock to production are cancelled wich is correct but if
> materials come from a child location, raw materials stay on parent stock
> location. I think they should come back to their original location, where
> they come from.
>
> Best regards:
>
> Ana
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/openobject-addons/+bug/498033/+subscribe
>

--
Ana Juaristi Olalde
Consultor Freelance OpenERP
www.anajuaristi.com
www.openerpsite.com
www.avanzosc.com
677 93 42 59 - 943 85 06 25

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

Hello Ana,

Can you illustrate a situation where there is no packing related and the state is 'waiting'?

I could not find any such case, everytime I have Picking and I cancel them before cancelling the Production Order.

Thanks,

Changed in openobject-addons:
assignee: nobody → JMA(Open ERP) (jma-openerp)
Revision history for this message
fabiolus (fabiolus) wrote :

Hi jma,
I understand what you've stated about cancelling the packing (which is the packing of raw materials sent from stock to the production location, right) before cancelling the production order, Ive tried it and it works.

But should'nt it be the other way, because i cancel the production order the movement of the raw materials from stock to production is no longer required and it should be cancelled.

Also is there a way to merge production orders together?
Ive tested the scheduler as per this post (http://www.openobject.com/forum/post55747.html#55747) ive made in the forum.

The result i would expect does not happen ie multiple sales order requirements with the same delivery date merged into a single purchase order or/ and production order. I get individual POs and MOs for each Sales Order inspite of the capacity per cycle being defined.

Also the Production order page displays a total at the bottom which includes the hrs and cycles for cancelled production orders.
Have a look at the attachment - MO/00004 (third last from the bottom) has been cancelled but the totals at the bottom include it.
It should'nt do that, should it? (I'm using the 5.0.0.9 all in one windows version)

Thanks
Fabio

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

Hello Ana,

From "draft" state once you 'Confirm production' it goes to state "waiting goods" where it's picking has already been created.
In order to cancel the production order you need to cancel the associated picking prior to that, only then you will be able to proceed.

Or the other option is you can go to Stock -> 'Internal Moves' and cancel the moves therein.
Then you'll be able to cancel the production order.

This seems very obvious.
I hope this helps.

Thank you.

Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Hello,

It has been fixed in lp:~openerp-commiter/openobject-addons/dev-addons2-rha1

Revision ID: <email address hidden>
Revision no: 4480

Thanks,
rha

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.