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_duplicate_payment_ids

View 18.0
Inputs Method Outputs
+ """ Retrieve move ids with same partner_id, amount and date as the current payment """
+ payment_to_duplicate_move = self._fetch_duplicate_reference()
+ for payment in self:
+             # Uses payment._origin.id to handle records in edition/existing records and 0 for new records
+             payment.duplicate_payment_ids = payment_to_duplicate_move.get(payment._origin.id, self.env['account.payment'])
  • duplicate_payment_ids

Back to entity