Merge lp:~openerp-dev/openobject-addons/6.1-opw-576447-ado into lp:openobject-addons/6.1

Proposed by Amit Dodiya (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 6873
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-576447-ado
Merge into: lp:openobject-addons/6.1
Diff against target: 13 lines (+3/-0)
1 file modified
account_voucher/account_voucher.py (+3/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-576447-ado
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+113344@code.launchpad.net

Description of the change

Hello,

"[FIX]: while paying the invoice of selected journal in voucher has inactive sequence that will throw the traceback it should raise warning"

Stpes to reproduce:
1). Goto : Accounting/Configuration/Financial Accounting/Journals/Journals, Select "Bank Journal - (test)" journal
2). Open Entry sequence of above journal ,inactive it and save it.
3). Create invoice, validate and click on payment button the voucher will be opened.
4). Now select the above journal which has inactive sequence and try to validate the voucher
You will get the trace-back it should raise the warning message.

Regards,
Amit Dodiya

To post a comment you must log in.
6873. By Amit Dodiya<email address hidden>

[FIX]: while paying the invoice of selected journal in voucher has inactive sequence that will throw the traceback it should raise warning

Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576447-port-mma/+merge/132488 and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

6873. By Amit Dodiya<email address hidden>

[FIX]: while paying the invoice of selected journal in voucher has inactive sequence that will throw the traceback it should raise warning

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py 2012-03-30 11:07:16 +0000
+++ account_voucher/account_voucher.py 2012-07-04 09:25:22 +0000
@@ -890,6 +890,9 @@
890 if voucher_brw.number:890 if voucher_brw.number:
891 name = voucher_brw.number891 name = voucher_brw.number
892 elif voucher_brw.journal_id.sequence_id:892 elif voucher_brw.journal_id.sequence_id:
893 if not voucher_brw.journal_id.sequence_id.active:
894 raise osv.except_osv(_('Configuration Error !'),
895 _('Please activate the sequence of selected journal !'))
893 name = seq_obj.next_by_id(cr, uid, voucher_brw.journal_id.sequence_id.id, context=context)896 name = seq_obj.next_by_id(cr, uid, voucher_brw.journal_id.sequence_id.id, context=context)
894 else:897 else:
895 raise osv.except_osv(_('Error !'),898 raise osv.except_osv(_('Error !'),