From 104af6411bb96345cb4dc94e12378bea6e92596d Mon Sep 17 00:00:00 2001 From: "Rajesh Prajapati (OpenERP)" Date: Mon, 26 Nov 2012 18:49:25 +0530 Subject: [PATCH] [IMP] check_writing : method updated bzr revid: rpr@tinyerp.com-20121126131925-6hinm1yfv918zyw3 --- addons/account_check_writing/wizard/account_check.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/account_check_writing/wizard/account_check.py b/addons/account_check_writing/wizard/account_check.py index 7d94c6be80f..8f98a554c66 100644 --- a/addons/account_check_writing/wizard/account_check.py +++ b/addons/account_check_writing/wizard/account_check.py @@ -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',