Comment 40 for bug 596862

Revision history for this message
Joël Grand-Guillaume @ camptocamp (jgrandguillaume-c2c) wrote :

Hi Jay,

You are right we can also delete the link on PO from picking. But as for SO, we need a way to delete or cancel the PO as well. Imagine someone made a mistake on a PO and confirm it :

- If the PO generated a picking list, we should be able to delete the link to PO and return it through "return packing" wizard so stock quantities are ok (this is ok). Then we should be able to delete or cancel the PO (this is impossible)

- If the PO has not generated a picking list (for example, you only write the description on it, but with no associated product), then you should be able to delete or cancel it (this is not possible).

Actually, if the PO is Done, there is no way to delete or cancel it and this is not really good for the end user. I suggest that a PO without linked picking can be deleted (or canceled) according to the user right of course.

Cancel will be my best choice (and a set to draft button as well) but I understand it may be could not be included into stable release (go for it on v6). Otherwise, I think we should replace the state != Done on unlink function by a check on "is there any linked picking".

Hope it's more clear now.

Regards,