From 31bd6deaa139127a20ed7dbf5bcb146f71278cdc Mon Sep 17 00:00:00 2001 From: Amit Patel Date: Wed, 19 Sep 2012 16:49:03 +0530 Subject: [PATCH] [IMP]:account_voucher:set readony=1 in number bzr revid: apa@tinyerp.com-20120919111903-6hifbkllaj46dslu --- addons/account_check_writing/account_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_check_writing/account_voucher.py b/addons/account_check_writing/account_voucher.py index aa0a29d7845..112dbf72cb8 100644 --- a/addons/account_check_writing/account_voucher.py +++ b/addons/account_check_writing/account_voucher.py @@ -38,7 +38,7 @@ class account_voucher(osv.osv): _columns = { 'amount_in_word' : fields.char("Amount in Word" , size=128, readonly=True, states={'draft':[('readonly',False)]}), 'allow_check' : fields.related('journal_id', 'allow_check_writing', type='boolean', string='Allow Check Writing'), - 'number': fields.char('Number', size=32), + 'number': fields.char('Number', size=32,readonly=True), } def onchange_amount(self, cr, uid, ids, amount, rate, partner_id, journal_id, currency_id, ttype, date, payment_rate_currency_id, company_id, context=None):