Code Analysis

Views touched (20)
XML IDNameModelTypeStatus
account_invoice_view_form_inherit_payment account.move.view.form.inherit.payment account.move form Inherits account.view_move_form
account_payment.form Invoice Payment Form ir.ui.view qweb Inherits payment.form
account_payment.portal_docs_entry account_payment.portal_docs_entry ir.ui.view qweb Inherits portal.portal_docs_entry
payment_link_wizard__form_inherit_account_payment payment.link.wizard.form.inherit.account_payment payment.link.wizard form Inherits payment.payment_link_wizard_view_form
payment_provider_form payment.provider.form payment.provider form Inherits payment.payment_provider_form
payment_refund_wizard_view_form payment.refund.wizard.form payment.refund.wizard form New
payment_transaction_form payment.transaction.form payment.transaction form Inherits payment.payment_transaction_form
portal_invoice_error Invoice error display: payment errors ir.ui.view qweb Inherits account.portal_invoice_error
portal_invoice_page_inherit_payment Payment on My Invoices ir.ui.view qweb Inherits account.portal_invoice_page
portal_invoice_payment Invoice Payment ir.ui.view qweb New
portal_invoice_payment_paid Invoice Paid ir.ui.view qweb New
portal_invoice_success Invoice success display: payment success ir.ui.view qweb Inherits account.portal_invoice_success
portal_my_home_account_payment Overdue invoices ir.ui.view qweb Inherits portal.portal_my_home
portal_my_home_overdue_invoice Portal layout: overdue invoices ir.ui.view qweb Inherits portal.portal_breadcrumbs
portal_my_invoices_payment Payment on My Invoices ir.ui.view qweb Inherits account.portal_my_invoices
portal_overdue_invoices_page Overdue payments ir.ui.view qweb New
res_config_settings_view_form res.config.settings.view.form.inherit.account res.config.settings form Inherits account.res_config_settings_view_form
view_account_journal_form account.journal.form.inherit.payment account.journal form Inherits account.view_account_journal_form
view_account_payment_form_inherit_payment view.account.payment.form.inherit.payment account.payment form Inherits account.view_account_payment_form
view_account_payment_register_form_inherit_payment account.payment.register.form.inherit.payment account.payment.register form Inherits account.view_account_payment_register_form
HTTP endpoints (5)
Route(s)HandlerAuthTypeMethodsFlags
/invoice/transaction/<int:invoice_id> PaymentPortal.invoice_transaction public jsonrpc ALL
/invoice/transaction/overdue PaymentPortal.overdue_invoices_transaction public jsonrpc ALL
(inherited route override) PaymentPortal.payment_pay inherited http ALL sudo
(inherited route override) PortalAccount.portal_my_invoice_detail inherited http ALL
/my/invoices/overdue PortalAccount.portal_my_overdue_invoices public http GET website
Models touched (12)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (4)
  • amount_paid Monetary
    compute='_compute_amount_paid' string='Amount paid'
  • authorized_transaction_ids Many2many → payment.transaction
    comodel_name='payment.transaction' compute='_compute_authorized_transaction_ids' compute_sudo=True copy=False readonly=True string='Authorized Transactions'
  • transaction_count Integer
    compute='_compute_transaction_count' string='Transaction Count'
  • transaction_ids Many2many → payment.transaction
    column1='invoice_id' column2='transaction_id' comodel_name='payment.transaction' copy=False readonly=True relation='account_invoice_transaction_rel' string='Transactions'
Public methods (4)
  • action_view_payment_transactions(self)
  • get_portal_last_transaction(self)
    @api.private
  • payment_action_capture(self)
    Capture all transactions linked to this invoice.
  • payment_action_void(self)
    Void all transactions linked to this invoice.

New fields (7)
  • amount_available_for_refund Monetary
    compute='_compute_amount_available_for_refund'
  • payment_token_id Many2one → payment.token
    comodel_name='payment.token' domain="[\n ('id', 'in', suitable_payment_token_ids),\n ]" help='Note that only tokens from providers allowing to capture the amount are available.' string='Saved Payment Token'
  • payment_transaction_id Many2one → payment.transaction
    bypass_search_access=True comodel_name='payment.transaction' readonly=True string='Payment Transaction'
  • refunds_count Integer
    compute='_compute_refunds_count' string='Refunds Count'
  • source_payment_id Many2one → account.payment
    comodel_name='account.payment' help='The source payment of related refund payments' index='btree_not_null' readonly=True related='payment_transaction_id.source_transaction_id.payment_id' store=True string='Source Payment'
  • suitable_payment_token_ids Many2many → payment.token
    comodel_name='payment.token' compute='_compute_suitable_payment_token_ids' compute_sudo=True
  • use_electronic_payment_method Boolean
    compute='_compute_use_electronic_payment_method'
Public methods (3)
  • action_post(self)
  • action_refund_wizard(self)
  • action_view_refunds(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • payment_provider_id Many2one → payment.provider
    comodel_name='payment.provider' compute='_compute_payment_provider_id' domain="[('code', '=', code)]" readonly=False store=True
  • payment_provider_state Selection
    related='payment_provider_id.state'
Public methods (1)
  • action_open_provider_form(self)

New fields (3)
  • payment_token_id Many2one → payment.token
    comodel_name='payment.token' compute='_compute_payment_token_id' domain="[\n ('id', 'in', suitable_payment_token_ids),\n ]" help='Note that tokens from providers set to only authorize transactions (instead of capturing the amount) are not available.' readonly=False store=True string='Saved payment token'
  • suitable_payment_token_ids Many2many → payment.token
    comodel_name='payment.token' compute='_compute_suitable_payment_token_ids'
  • use_electronic_payment_method Boolean
    compute='_compute_use_electronic_payment_method'
Public methods (0)

No public methods.

New fields (7)
  • discount_date Date
  • display_open_installments Boolean
    compute='_compute_display_open_installments'
  • epd_info Char
    compute='_compute_epd_info' string='Early Payment Discount Information'
  • has_eligible_epd Boolean
  • invoice_amount_due Monetary
    compute='_compute_invoice_amount_due' currency_field='currency_id' string='Amount Due'
  • open_installments Json
    export_string_translation=False
  • open_installments_preview Html
    compute='_compute_open_installments_preview' export_string_translation=False
Public methods (0)

No public methods.

New fields (1)
  • journal_id Many2one → account.journal
    check_company=True comodel_name='account.journal' compute='_compute_journal_id' copy=False domain='[("type", "=", "bank")]' help='The journal in which the successful transactions are posted.' inverse='_inverse_journal_id' string='Payment Journal'
Public methods (0)

No public methods.

New fields (9)
  • amount_available_for_refund Monetary
    related='payment_id.amount_available_for_refund' string='Maximum Refund Allowed'
  • amount_to_refund Monetary
    compute='_compute_amount_to_refund' readonly=False store=True string='Refund Amount'
  • currency_id Many2one
    related='transaction_id.currency_id' string='Currency'
  • has_pending_refund Boolean
    compute='_compute_has_pending_refund' string='Has a pending refund'
  • payment_amount Monetary
    related='payment_id.amount' string='Payment Amount'
  • payment_id Many2one → account.payment
    comodel_name='account.payment' default=<expr> readonly=True string='Payment'
  • refunded_amount Monetary
    compute='_compute_refunded_amount' string='Refunded Amount'
  • support_refund Selection
    compute='_compute_support_refund' selection=[('none', 'Unsupported'), ('full_only', 'Full Only'), ('partial', 'Partial')] string='Refund'
  • transaction_id Many2one
    related='payment_id.payment_transaction_id' string='Payment Transaction'
Public methods (1)
  • action_refund(self)

New fields (3)
  • invoice_ids Many2many → account.move
    column1='transaction_id' column2='invoice_id' comodel_name='account.move' copy=False domain=[('move_type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))] readonly=True relation='account_invoice_transaction_rel' string='Invoices'
  • invoices_count Integer
    compute='_compute_invoices_count' string='Invoices Count'
  • payment_id Many2one → account.payment
    comodel_name='account.payment' readonly=True string='Payment'
Public methods (1)
  • action_view_invoices(self)
    Return the action for the views of the invoices linked to the transaction. Note: self.ensure_one() :return: The action :rtype: dict

New fields (1)
  • pay_invoices_online Boolean
    config_parameter='account_payment.enable_portal_payment'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…