From b3008fd724050a15ecb63d10e2841d26ea35c53c Mon Sep 17 00:00:00 2001 From: Atchuthan Date: Tue, 19 Jan 2016 12:38:50 +0530 Subject: [PATCH] [FIX] account_check_writing: Do not duplicate voucher number In the base model `account.voucher`, in the module `account_voucher`, the field `number` is set with `copy=False`, to avoid copy the voucher number and force to re-use the voucher sequence. The module `account_check_writing` redefine this column, but forgot to set the `copy=False`. Therefore, once this module installed, the voucher number is copied on the voucher duplication. opw-669154 --- 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 6fe17c4a1b5..d4bbded11fd 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", 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', readonly=True), + 'number': fields.char('Number', readonly=True, copy=False), } def _amount_to_text(self, cr, uid, amount, currency_id, context=None):