Merge lp:~openerp-dev/openobject-addons/6.0-opw-50710-xal into lp:openobject-addons/6.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/6.0-opw-50710-xal |
Merge into: | lp:openobject-addons/6.0 |
Diff against target: |
66 lines (+22/-1) 4 files modified
account/invoice.py (+9/-0) purchase/purchase.py (+7/-1) purchase/purchase_view.xml (+1/-0) purchase/purchase_workflow.xml (+5/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-50710-xal |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+113961@code.launchpad.net |
Description of the change
Hi,
This fix some problem with Purchase Order workflow and draft Invoice.
Steps:
- Create a Purchase Order (Invoicing method = From Order) and add some lines
- Confirm it.
- check and delete the draft invoice associated with the PO.
Current: - PO stay in "approved"
- We have no way to re-create the invoice
Expected: - PO should switch to "Invoice Exception" (like standard invoice cancellation)
- We should have a way to re-create invoice without doing it manually
This MP do:
- invoice: force workflow transition to "cancel" before unlink
(so subflow.cancel is correctly triggered on PO - and PO switch to "Invoice Exception")
- purchase: add a transition from "invoice_except" to "invoice" + corresponding button in the view.
(So user can re-create the invoice like it's done uppon 'approval')
- purchase: on invoice creation, force order state to "Approved" in case it's in "Invoice Exception".
Regards,
Xavier
Unmerged revisions
- 5288. By Xavier ALT
-
[FIX] purchase: on 'Invoice Exception', allow to re-create invoice using PO method
- When Purchase Order state is ``Invoice Exception`` and PO invoicing method
is 'From Order' there is not way to re-create the invoice - like it's done
by PO uppon 'approval'.So we add a workflow transition from 'except_invoice' to 'invoice' to allow
re-creation of invoice and the corresponding button into purchase order view. - 5287. By Xavier ALT
-
[FIX] account: force invoice transition to cancel before really unlinking them
- when deleting 'draft' invoices, we have to force transition to 'cancel'
before deleting them, otherwise workflow waiting on account.invoice
``subflow.cancel` ` will never be trigger (ex: related PO will never switch
to 'Invoice Exception' state)