A sale that handle shipment exception, not change the state to done and keep in processing state
Scenario:
- Activate sale module (same as purchase module)
- Create a sale:
- Shipment method: On Order Processed
- Invoice method: On Shipment Sent
- Process sale
- Cancel shipment customer
- Reload the sale. Do "handle shipment exception" and not create new moves.
- Finally, the sale is in processing state; not done
Since "Do not consider sale as done when invoice or shipment state are none" #12594 (closed)
Sale "is_done" debug:
(Pdb) all(not l.quantity for l in self.lines if l.type == 'line')
False
(Pdb) self.invoice_state
'none'
(Pdb) self.shipment_state
'sent'