TIP: You can type at any time to perform a new search.
Account financial discount
account_financial_discount · OCA/account-payment
Security findings
Migration considerations
view_account_payment_register_form_inherit— For a target of Odoo 17.0+: view 'view_account_payment_register_form_inherit' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · sourceview_account_reconcile_model_form— For a target of Odoo 17.0+: view 'view_account_reconcile_model_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · sourceview_move_form_inherit— For a target of Odoo 17.0+: view 'view_move_form_inherit' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- 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
Code Analysis
Views touched (8)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_discountBooleancompute='_compute_financial_discount_data' -
force_financial_discountBooleandefault=Falsehelp='If marked, financial discount will be applied even if the discount date is passed' args: 'Force financial discount' -
has_discount_availableBooleancompute='_compute_financial_discount_data'search='_search_has_financial_discount' args: 'Has discount available'
No public methods.
New fields (5)
-
amount_discountMonetarycurrency_field='company_currency_id'default=0.0 args: 'Financial Discount amount in company currency' -
amount_discount_currencyMonetarydefault=0.0 args: 'Financial Discount amount in an optional other currency if it is a multi-currency entry.' -
amount_discount_taxMonetarycurrency_field='company_currency_id'default=0.0 -
date_discountDateargs: 'Financial Discount date' -
discount_tax_line_idMany2one → account.move.lineindex=True args: 'account.move.line'
No public methods.
New fields (4)
-
force_financial_discountBooleanhelp='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_idMany2onecompute='_compute_payment_method_id' -
show_force_financial_discountBooleancompute='_compute_show_force_financial_discount' -
with_financial_discountBooleancompute='_compute_with_financial_discount'
No public methods.
New fields (2)
-
days_discountIntegerargs: 'Days for discount' -
percent_discountFloatargs: 'Discount percentage'
-
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_discountsBooleanstring='Consider financial discounts' -
financial_discount_expense_account_idMany2one → account.accountreadonly=Falserelated='company_id.financial_discount_expense_account_id'string='Expense write-off account' args: 'account.account' -
financial_discount_labelChardefault='Financial discount'string='Write-off label' -
financial_discount_revenue_account_idMany2one → account.accountreadonly=Falserelated='company_id.financial_discount_revenue_account_id'string='Revenue write-off account' args: 'account.account' -
financial_discount_toleranceFloathelp='Tolerance for the application of financial discounts. Use 0.05 toapply discount up to a difference of 5 cts between statement lineand move lines.'
No public methods.
New fields (2)
-
financial_discount_expense_account_idMany2one → account.accountstring='Financial discount writeoff expense account' args: 'account.account' -
financial_discount_revenue_account_idMany2one → account.accountstring='Financial discount writeoff revenue account' args: 'account.account'
No public methods.
New fields (2)
-
financial_discount_expense_account_idMany2one → account.accountreadonly=Falserelated='company_id.financial_discount_expense_account_id'string='Financial discount expense write-off account' args: 'account.account' -
financial_discount_revenue_account_idMany2one → account.accountreadonly=Falserelated='company_id.financial_discount_revenue_account_id'string='Financial discount revenue write-off account' args: 'account.account'
No public methods.