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_payment_receipt_title

View 20.0
Inputs Method Outputs
  • payment_type
  • partner_type
+ for pay in self:
+             pay.payment_receipt_title = self.env._("Payment Receipt")
+             if pay.payment_type == 'outbound' and pay.partner_type == 'supplier':
+                 pay.payment_receipt_title = self.env._("Remittance Advice")
+             elif (pay.payment_type == 'outbound' and pay.partner_type == 'customer') or (pay.payment_type == 'inbound' and pay.partner_type == 'supplier'):
+                 pay.payment_receipt_title = self.env._("Refund Confirmation")
  • payment_receipt_title

Back to entity