Amit Dodiya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-576447-ado into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576447-ado/+merge/113344
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
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576447-ado/+merge/113344
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-576447-ado.
=== 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 07:34:25 +0000
@@ -890,6 +890,9 @@
if voucher_brw.number:
name = voucher_brw.number
elif voucher_brw.journal_id.sequence_id:
+ if not voucher_brw.journal_id.sequence_id.active:
+ raise osv.except_osv(_('Configuration Error !'),
+ _('Please active the sequence of selected journal !'))
name = seq_obj.next_by_id(cr, uid, voucher_brw.journal_id.sequence_id.id, context=context)
else:
raise osv.except_osv(_('Error !'),
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp