← Back to team overview

openerp-expert-production team mailing list archive

[Bug 596862] Re: on sales flow : we cannot cancel a SO when picking is done.

 

I can imaging that a possible solution could be;

if shipped goods - returned goods = 0 AND invoices are all processed resulting in value equals 0 then
     SO can be canceled (not deleted)
else
     SO can NOT be canceled
     if shipped goods - returned goods <> 0 then 
          message = There are still goods shipped incl. packing numbers
    if invoices not processed then
         message = There are still draft or open invoices, incl numbers

The idea is that if all goods are returned and all corresponding invoices are processed the sum result is zero for product quantities and purchase or sales amount.
If this is not the case, e.g. shipping fees exist on invoice, the SO can not be canceled and a new SO could be generated.

-- 
on sales flow : we cannot cancel a SO when picking is done.
https://bugs.launchpad.net/bugs/596862
You received this bug notification because you are a member of OpenERP
Manufacturing Experts, which is a direct subscriber.

Status in OpenObject Addons Modules: New

Bug description:
Hi,


I just realized that with the new check on the last version it's just impossible to cancel a SO when his picking has already been confirmed !!!

I mean, this should not appear in a normal flow, I agree, but what to do when you're facing this !??

To reproduce :

1. Create a SO with 1 line (no matter the configuration)
2. Confirm it, go to the packing and confirmed it (force if necessary)
3. Go back to the SO, try to cancel => It says you must cancel the packing first !
=> Normal
4. Goto to the packing, you cannot cancel it, there is no button ! The workflow doesn't allow to cancel the "done" packing !
=> Can be normal...
5. Ok, so now you try to Delete this "done" packing in order to cancel your SO and it's not possible anymore !!! Says you cannot delete a done packing

So, you cannot cancel, you cannot delete the packing... But you need one of those solutions to delete your SO !!

We do need something here to be able to cancel the SO, whatever it is.

I'll suggest to enable the workflow transition from Done to Cancel state into packing. Doing this, we'll be able to ensure who's doing that through "role" security.

Thanks,


Joël