Review: Needs Fixing
The changes in sale/sale.py and sale/sale_view.xml are fine.

But the other changes are incorrect: you changed the workflow!
You simply cannot cancel a sale order with state 'done'.
Please undo the changes you have made in module stock.

The missing bit is: in the sales order form view (sale/sale_view.xml), under 
the field picking_ids, add a button to cancel those pickings (you can label it 
"Cancel all Pickings").  See how pickings are cancelled, and reuse that for the 
action of your button.

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-usability-Be_able_to_cancel_some_documents-han/+merge/61920
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-usability.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help   : https://help.launchpad.net/ListHelp

Reply via email to