Repository
OCA/account-payment · module folder · Try on Runboat
Module version
1.0.1
Category
Account
Folder size
0.2 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-payment
Last tracking update
2026-08-07 07:47:38
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Akim Juillerat, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
ebill_postfinance_financial_discount
Description

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
report_payment_receipt_document report_payment_receipt_document ir.ui.view qweb Inherits account.report_payment_receipt_document
view_account_config_settings account settings res.config.settings form Inherits account.res_config_settings_view_form
view_account_invoice_filter_inherit account.invoice.select.inherit account.move Inherits account.view_account_invoice_filter
view_account_payment_register_form_inherit account.payment.register.form.inherit account.payment.register form Inherits account.view_account_payment_register_form
view_account_reconcile_model_form account.reconcile.model.form account.reconcile.model form Inherits account.view_account_reconcile_model_form
view_invoice_tree_inherit account.invoice.tree.inherit account.move tree Inherits account.view_invoice_tree
view_move_form_inherit account.move.form.inherit account.move form Inherits account.view_move_form
view_payment_term_form account.payment.term.form account.payment.term form Inherits account.view_payment_term_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (7)

New fields (3)
  • display_force_financial_discount Boolean
    compute='_compute_financial_discount_data'
  • force_financial_discount Boolean
    default=False help='If marked, financial discount will be applied even if the discount date is passed' args: 'Force financial discount'
  • has_discount_available Boolean
    compute='_compute_financial_discount_data' search='_search_has_financial_discount' args: 'Has discount available'
Public methods (0)

No public methods.

New fields (5)
  • amount_discount Monetary
    currency_field='company_currency_id' default=0.0 args: 'Financial Discount amount in company currency'
  • amount_discount_currency Monetary
    default=0.0 args: 'Financial Discount amount in an optional other currency if it is a multi-currency entry.'
  • amount_discount_tax Monetary
    currency_field='company_currency_id' default=0.0
  • date_discount Date
    args: 'Financial Discount date'
  • discount_tax_line_id Many2one → account.move.line
    index=True args: 'account.move.line'
Public methods (0)

No public methods.

New fields (4)
  • force_financial_discount Boolean
    help='Force financial discount even if the date is past and the flag is not set on the invoices.\nNote that financial discounts will be applied for invoices havingthe flag set, even if this checkbox is not marked.' string='Apply Financial Discount Past Date'
  • payment_method_id Many2one
    compute='_compute_payment_method_id'
  • show_force_financial_discount Boolean
    compute='_compute_show_force_financial_discount'
  • with_financial_discount Boolean
    compute='_compute_with_financial_discount'
Public methods (0)

No public methods.

New fields (2)
  • days_discount Integer
    args: 'Days for discount'
  • percent_discount Float
    args: 'Discount percentage'
Public methods (2)
  • calc_discount_date(self, date_ref=False)
    Calculate last date the invoice is eligible for discounts.
  • write(self, values)
    Forbid the change of discount fields if a move was posted

New fields (5)
  • apply_financial_discounts Boolean
    string='Consider financial discounts'
  • financial_discount_expense_account_id Many2one → account.account
    readonly=False related='company_id.financial_discount_expense_account_id' string='Expense write-off account' args: 'account.account'
  • financial_discount_label Char
    default='Financial discount' string='Write-off label'
  • financial_discount_revenue_account_id Many2one → account.account
    readonly=False related='company_id.financial_discount_revenue_account_id' string='Revenue write-off account' args: 'account.account'
  • financial_discount_tolerance Float
    help='Tolerance for the application of financial discounts. Use 0.05 toapply discount up to a difference of 5 cts between statement lineand move lines.'
Public methods (0)

No public methods.

New fields (2)
  • financial_discount_expense_account_id Many2one → account.account
    string='Financial discount writeoff expense account' args: 'account.account'
  • financial_discount_revenue_account_id Many2one → account.account
    string='Financial discount writeoff revenue account' args: 'account.account'
Public methods (0)

No public methods.

New fields (2)
  • financial_discount_expense_account_id Many2one → account.account
    readonly=False related='company_id.financial_discount_expense_account_id' string='Financial discount expense write-off account' args: 'account.account'
  • financial_discount_revenue_account_id Many2one → account.account
    readonly=False related='company_id.financial_discount_revenue_account_id' string='Financial discount revenue write-off account' args: 'account.account'
Public methods (0)

No public methods.