Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Invoicing

Entity: account.payment

Compute Method: _compute_name

View 19.0 View 20.0
Inputs Method Outputs
  • id
  • name
  • move_id
  • move_id.name
  • state
  • company_id
  • date
for payment in self:
-             if payment.id and (not payment.name or payment.move_id and payment.name != payment.move_id.name) and payment.state in ('in_process', 'paid'):
+             if payment.id and (not payment.name or payment.move_id and payment.name != payment.move_id.name) and payment.state in ('paid', 'reconciled'):
                payment.name = (
                    payment.move_id.name
                    or self.env['ir.sequence'].with_company(payment.company_id).next_by_code(
                        'account.payment',
                        sequence_date=payment.date,
                    )
                )
  • name

Back to entity