Account Payment Terms Discount
account_payment_term_discount · OCA/account-payment
Health
58/100
fair
-
Security25/25No findings
-
Activity6/25Last human commit 30 months ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 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.12 MB
Module directory on disk
Code analysis
1 migration note
5 models
6 views
0 HTTP endpoints
Migration considerations
invoice_form_discounts— 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 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
invoice_form_discounts |
account.invoice.form.discount | account.move | form | Inherits account.view_move_form |
invoice_tree_discount |
account.invoice.tree.discount | account.move | tree | Inherits account.view_invoice_tree |
product_template_form_view_exclude_shipping |
product_template.form.view.exclude.shipping | product.template | form | Inherits product.product_template_form_view |
view_account_payment_term_form |
account.payment.term.form | account.payment.register | form | Inherits account.view_account_payment_register_form |
view_payment_term_disc_form |
account.payment.term.disc.form | account.payment.term | form | Inherits account.view_payment_term_form |
view_payment_term_disc_tree |
account.payment.term.disc.tree | account.payment.term | tree | Inherits account.view_payment_term_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (5)
-
check_payment_discountBooleancompute='_compute_payment_disc' -
discount_amtMonetarycompute='_compute_discount_amt'help='Discount amount possible with the given payment term'store=True args: 'Discount Possible' -
discount_dateDatecompute='_compute_discount_date'help='Compute discount on the invoice based on the payment term discount percentage.and the current date'store=True -
discount_takenMonetarycopy=False args: 'Discount taken' -
shipping_lines_totalMonetarycompute='_compute_shipping_lines_total'help='Exclude shipping lines total from discount if applicable in terms'
No public methods.
New fields (3)
-
amount_helperFloatrequired=Falsestring='Amount helper' -
discount_amtMonetarystore=True -
invoice_idMany2one → account.movecomodel_name='account.move'string='Invoice'
-
action_create_payments(self) -
default_get(self, fields)@api.model -
onchange_payment_amount(self)@api.onchange('amount', 'payment_difference', 'payment_date', 'currency_id')
New fields (3)
-
is_discountBooleanhelp='Check this box if this payment term has a discount. If discount is used the remaining amount of the invoice will not be paid'string='Early Payment Discount' -
is_exclude_shipping_linesBooleanhelp='Check this box if you want to exclude shipping charges from discount'string='Exclude Shipping from Discount' -
is_exclude_taxes_discountBooleanhelp='Check this box if want to exclude taxes from discount'string='Exclude Taxes from Discount'
No public methods.
New fields (3)
-
discount_expense_account_idMany2one → account.accounthelp='This account will be used to post the discount on sales.'string='Discount on Sales Account' args: 'account.account' -
discount_income_account_idMany2one → account.accounthelp='This account will be used to post the discount on purchases.'string='Discount on Purchases Account' args: 'account.account' -
is_discountBooleanreadonly=Truerelated='payment_id.is_discount'string='Early Payment Discount'
-
OnchangeDiscount(self)@api.onchange('discount_percentage')
New fields (1)
-
is_exclude_shipping_amountBooleanhelp='Check this box if want to exclude shipping charges from discount'string='Exclude Shipping Amount'
No public methods.
Loading…