[FIX] account: loop correctly
opw-2157568 closes odoo/odoo#42108 X-original-commit: 0d6a370f08b981737e7796055628955e82fdb19c Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -903,8 +903,8 @@ class AccountMove(models.Model):
|
||||
replacements = {'out_invoice': _('Invoice'), 'out_refund': _('Credit Note')}
|
||||
|
||||
for record in self:
|
||||
name = type_name_mapping[self.type]
|
||||
record.type_name = replacements.get(self.type, name)
|
||||
name = type_name_mapping[record.type]
|
||||
record.type_name = replacements.get(record.type, name)
|
||||
|
||||
@api.depends('type')
|
||||
def _compute_invoice_filter_type_domain(self):
|
||||
|
||||
Reference in New Issue
Block a user