Merge lp:~openerp-dev/openobject-addons/7.0-opw-597924-dhr into lp:openobject-addons/7.0

Proposed by Dharti Ratani(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-597924-dhr
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
account/account_invoice.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-597924-dhr
Reviewer Review Type Date Requested Status
Alexandre Fayolle - camptocamp (community) Approve
Naresh(OpenERP) Pending
Review via email: mp+186016@code.launchpad.net

Description of the change

Hello Sir,

When an invoice is cancelled and then Reset to Draft, the 'Print' and 'Send By Email' button should be highlighted again after validating that invoice.

Thanks
dhr

To post a comment you must log in.
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

LGTM

review: Approve

Unmerged revisions

9452. By Dharti Ratani(OpenERP)

[FIX]When an invoice is reset to draft, the buttons 'Print' and 'Send By Email' should be highlighted again

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account_invoice.py'
2--- account/account_invoice.py 2013-09-03 16:01:08 +0000
3+++ account/account_invoice.py 2013-09-17 11:49:59 +0000
4@@ -668,7 +668,7 @@
5
6 # go from canceled state to draft state
7 def action_cancel_draft(self, cr, uid, ids, *args):
8- self.write(cr, uid, ids, {'state':'draft'})
9+ self.write(cr, uid, ids, {'state':'draft', 'sent': False})
10 wf_service = netsvc.LocalService("workflow")
11 for inv_id in ids:
12 wf_service.trg_delete(uid, 'account.invoice', inv_id, cr)