Account financial discount

account_financial_discount
REPOSITORY
REPOSITORYOCA/account-payment
GIT
GIThttps://github.com/OCA/account-payment.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-payment/tree/14.0/account_financial_discount
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYAccount
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSAkim Juillerat, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits account.res_config_settings_view_form
view_account_invoice_filter_inherit account.invoice.select.inherit account.move xpath Inherits account.view_account_invoice_filter
view_account_payment_register_form_inherit account.payment.register.form.inherit account.payment.register xpath Inherits account.view_account_payment_register_form
view_account_reconcile_model_form account.reconcile.model.form account.reconcile.model field Inherits account.view_account_reconcile_model_form
view_invoice_tree_inherit account.invoice.tree.inherit account.move field Inherits account.view_invoice_tree
view_move_form_inherit account.move.form.inherit account.move xpath Inherits account.view_move_form
view_payment_term_form account.payment.term.form account.payment.term xpath Inherits account.view_payment_term_form
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.