Account financial discount
account_financial_discount · OCA/account-payment
Health
51/100
fair
-
Security25/25No findings
-
Activity6/25Last human commit 32 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.2 MB
Module directory on disk
Code analysis
3 migration notes
7 models
8 views
0 HTTP endpoints
Migration considerations
view_account_payment_register_form_inherit— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_account_reconcile_model_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_move_form_inherit— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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.