[IMP] check_writing : method updated

bzr revid: rpr@tinyerp.com-20121126131925-6hinm1yfv918zyw3
This commit is contained in:
Rajesh Prajapati (OpenERP) 2012-11-26 18:49:25 +05:30
parent 723f2eb073
commit 104af6411b
1 changed files with 3 additions and 2 deletions

View File

@ -41,8 +41,9 @@ class account_check_write(osv.osv_memory):
if voucher_ids:
checks = voucher_obj.browse(cr, uid, voucher_ids, context=context)
for check in checks:
voucher_obj.write(cr, uid, [check.id], {'number': str(number)}, context=context)
number += 1
if not check.number:
voucher_obj.write(cr, uid, [check.id], {'number': str(number)}, context=context)
number += 1
check_layout_report = {
'top' : 'account.print.check.top',