[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
This commit is contained in:
parent
ccd28977c7
commit
b3008fd724
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue