Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-opw-576447-port-mma into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576447-port-mma/+merge/132488
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.
Code is forward port from 6.1
Thanks
Mayur
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-576447-port-mma/+merge/132488
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-opw-576447-port-mma.
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py 2012-10-29 09:17:13 +0000
+++ account_voucher/account_voucher.py 2012-11-01 09:55:23 +0000
@@ -953,6 +953,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 activate 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