Account Cash Discount Payment
account_cash_discount_payment · OCA/account-payment
Health
63/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 44 months ago
-
Required by20/252 modules depend on it
-
Maturity18/25In 3 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis
2 migration notes
4 models
4 views
0 HTTP endpoints
Migration considerations
account_payment_line_create_form_view— 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 · sourceaccount_payment_line_form_view— 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. (2 occurrences in this file) 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
- Odoo dependencies
- Python dependencies
- lxml
- System dependencies
- None
- Required by
- account_cash_discount_reconcile_write_off, account_cash_discount_write_off
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_move_line_tree_view |
account.move.line.tree (in account_cash_discount_payment) | account.move.line | tree | Inherits account.view_move_line_tree |
account_payment_line_create_form_view |
account.payment.line.create.form (in account_cash_discount_payment) | account.payment.line.create | form | Inherits account_payment_order.account_payment_line_create_form |
account_payment_line_form_view |
account.payment.line.form (account_cash_discount_payment) | account.payment.line | form | Inherits account_payment_order.account_payment_line_form |
account_payment_line_tree_view |
account.payment.line.tree (account_cash_discount_payment) | account.payment.line | tree | Inherits account_payment_order.account_payment_line_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
discount_amountMonetaryreadonly=Truerelated='move_id.discount_amount' -
discount_due_dateDatereadonly=Truerelated='move_id.discount_due_date'
No public methods.
New fields (5)
-
discount_amountMonetaryreadonly=Truerelated='move_line_id.move_id.real_discount_amount' -
discount_due_dateDatereadonly=Truerelated='move_line_id.move_id.discount_due_date' -
pay_with_discountBooleandefault=False -
pay_with_discount_allowedBooleancompute='_compute_pay_with_discount_allowed' -
toggle_pay_with_discount_allowedBooleancompute='_compute_toggle_pay_with_discount_allowed'
-
toggle_pay_with_discount(self)
New fields (2)
-
cash_discount_dateDatedefault=<expr>help='Search lines with a discount due date which is posterior to the selected date.' -
date_typeSelectionondelete={'discount_due_date': 'cascade'}selection_add=[('discount_due_date', _('Discount Due Date'))]
-
move_line_filters_change(self)@api.onchange('date_type', 'move_date', 'due_date', 'journal_ids', 'invoice', 'target_move', 'allow_blocked', 'payment_mode', 'cash_discount_date')
Loading…
Loading…