Merge lp:~openerp-dev/openobject-addons/6.0-opw-57616-xal into lp:openobject-addons/6.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/6.0-opw-57616-xal |
Merge into: | lp:openobject-addons/6.0 |
Diff against target: |
30 lines (+2/-3) 1 file modified
purchase/purchase.py (+2/-3) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-57616-xal |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+113944@code.launchpad.net |
Description of the change
Hi,
This fix a problem with Purchase Order workflow, not switching to "cancel" activity after confirmation.
Here we trigger workflow 'cancel' transition (which will write state = 'cancel') instead of only write state == 'cancel'.
Steps:
- Create a SO, add one line with product "CPU1" and choose "Procurement Order = on order"
- Confirm the SO
- Run Procurement scheduler (Warehouse > Schedulers > Compute Schedulers)
(this create a new PO)
- Go to that new PO and confirm it.
- Got to the related reception - and cancel it.
- Then cancel the PO
Current: PO state indicate "cancelled"
but workflow instance is on "except_picking", "except_invoice"
and origin procurement is still in "running state"
and origin SO is still in "Manual in Progress" state
Expected: PO state indicate "cancelled"
PO workflow in on "cancel" activity
SO is in "Shipping Exception" state
Regards,
Xavier
Unmerged revisions
- 5287. By Xavier ALT
-
[FIX] purchase: trigger workflow 'cancel' on PO cancellation otherwise PO workflow stay on except_
picking/ except_ invoice