[FIX] account_voucher: unnecessary copy of payment memo
Before this commit, the payment memo was copied during the duplication of a voucher. The issue is that the payment memo is not always shown in the view, and it's mostly unique by voucher. Now, the payment memo it's not copied anymore. opw-1986544 closes odoo/odoo#33708 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
committed by
Jorge Pinna Puissant
parent
8d7ee39213
commit
d71f2116d9
@@ -37,7 +37,7 @@ class AccountVoucher(models.Model):
|
||||
('purchase', 'Purchase')
|
||||
], string='Type', readonly=True, states={'draft': [('readonly', False)]}, oldname="type")
|
||||
name = fields.Char('Payment Memo',
|
||||
readonly=True, states={'draft': [('readonly', False)]}, default='')
|
||||
readonly=True, states={'draft': [('readonly', False)]}, default='',copy=False)
|
||||
date = fields.Date("Bill Date", readonly=True,
|
||||
index=True, states={'draft': [('readonly', False)]},
|
||||
copy=False, default=fields.Date.context_today)
|
||||
|
||||
Reference in New Issue
Block a user