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
| Inputs | Method | Outputs |
|---|---|---|
|
- """ To override in order to change the title displayed on the payment receipt report """ - self.payment_receipt_title = _('Payment Receipt') + 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") |
|
