← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 646224] Re: [5.0][sale] Cancelling an out picking sets the sale order as shipped

 

Hi Jay and Dhruti,

I was finally able to test it today, if you do single cancellation of
picking it works, if you do partial picking, it works but if you cancel
two times the picking or more it doesn't work, then, if you cancel sale
order, the shipped field sets to False but while you don't cancel sale
order, it is shipped with its two pickings canceled.

Sorry for the delay.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/646224

Title:
  [5.0][sale] Cancelling an out picking sets the sale order as shipped

Status in OpenERP Modules (addons):
  In Progress

Bug description:
  Hi,

  If I cancel an out picking, it always writes in sale order
  "shipped=True", because action_cancel() from stock.picking extended in
  sale module, calls to action_ship_end(), sale's function.

  If picking was canceled. In action_ship_end(), it always writes
  shipped=True except that it finds in the sale, pickings in state
  different to 'done' or 'cancel',  then when you cancel an out picking
  the sale order will be shipped and it isn't right.

  I include a patch that changes this check, it searches for pickings in
  the sale with state different to 'done' or 'cancel' for calls to
  action_ship_end() if it only finds picking in done or cancel  states
  it doesn't call to function. Reversing the current behavior.