Removing purchase order lines does not cancel procurement

Bug #725860 reported by Albert Cervera i Areny - http://www.NaN-tic.com

This bug report was converted into a question: question #183892: Removing purchase order lines does not cancel procurement.

42
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Addons Team 2

Bug Description

Removing purchase order lines does not cancel procurements associated with them and thus making the system to think those products will arrive in the future.

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Albert,

I have checked your issue.

The procurement object is directly related with the purchase.order object not the purchase.order.line.

So if you delete the purchase order line the procurement does not affected.
The procurement state only affected against the purchase order means if you delete the PO only it will cancel the related procurement automatically

Hope you will agree with this.

Thanks.

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hello,

So what do you do if you have to cancel only one product of the purchase order with many products ?

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Guewen,

I think you are also misunderstand something, because the purchase order is created from procurement.
Not the procurement is created from purchase order.

Here let me explain whole thing,

The purchase order is related with our procurement, there is two possibility.

* When we doesn't have enough stock (Our product is make to stock and minimum stock rule is define) .
* When we doesn't maintain the stock (Our product is make to order).

Now, I think you have specified the second option which is related to make to order.

Let me describe this scenario.

I have created a one sale order for one product with 10 qty which procure method is make to order.
I have confirm my sale order which is created a procurement order when I run procurement it will creates a PO.

Now , I going to delivery order and check the availably of this product. But this product doesn't available because still I didn't receive the incoming shipment.

So If you have deleted PO line or decrees the product qty then it will never allow the delivery.

Hope this will help you.

Thank you!

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hi Amit,

Sorry, I missed your answer.

I was specifically speaking about purchase orders in a make to stock context and not as make to order.

The purchase order has been generated because we do not have enough stock according to our minimum stock rules.
But I still must have the possibility to cancel the generated need if I consider that I won't need my product anymore over a period for example.

If I'm in a situation where my product is the only product in the purchase order, I can delete the purchase order -> in my memory, it cancels the procurement, is that right?

Now, I have 2 products in my purchase order and I want to cancel only one of them -> I have to unlink the po line, search for the procurement and manually unlink / cancel it.

It seems to be a lack if I can do that for a whole purchase order but not for a po line.

Otherwise, if it is assumed that the unlink operation on a po line should not cancel any procurement, so I would think that the unlink of a purchase order should not cancel any procurement neither.

I think that the actual behavior is not consistent ?

What do you think ?

Thanks
Guewen

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Guewen,

I have checked your issue, As you said I have faced the inconsistency o this issue.

1) If I cancelled my PO then related procurement is also cancelled.
2) If I deleted my PO then also related procurement is also cancelled.
but
3) If I deleted my PO line, It doesn't affect on procurement.

We have called a workflow services on unlink method of purchase.order and call the cancel workflow method of PO. That's when you deleted your PO procurement goes in to cancel state(Which is quite good). But for PO line we can not called the workflow services, So it's difficult to cancel procurement when deleted PO line.

According your scenario, You have merged your purchase order after that you realise that you have to delete your PO. So this time you must be delete your PO line. As per this scenario we can consider this as a real bug. Also it doesn't blocked the system, So I am considering this as a "Low" priority.

As per my "Opinion", This should be fixed on trunk version.

BTW Guewen, Thanks for your passion on this issue.

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Revision history for this message
Bouke Steemers (bouke-8) wrote :

Hi we encounter this issue every week when doing purchases.

So in my humble opinion it should be importance Medium.

Bouke

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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