Payment Term Extension
account_payment_term_extension · OCA/account-payment
Replaces
paydays via account_payment_term_multi_day (8.0) · account_payment_term_multi_day (9.0)OCA/account-invoicing 8.0–12.0 → OCA/account-payment 13.0–19.0
Health
75/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 10 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
1.14 MB
Module directory on disk
Code analysis
0 migration notes
5 models
3 views
0 HTTP endpoints
Description
This module extends the functionality of payment terms to:
- select "Percent (untaxed amount)" type in lines for using the base amount instead of the total (with taxes) one.
- support rounding, months and weeks on payment term lines
- allow to set more than one day of payment in payment terms
- if a payment term date is a holiday, it is postponed to a selected date
- allow to apply a chronological order on lines
- for example, with a payment term which contains 2 lines
- on standard, the due date of all lines is calculated from the invoice date
- with this feature, the due date of the second line is calculated from the due date of the first line
- for example, with a payment term which contains 2 lines
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings.view.form.inherit.account | res.config.settings | form | Inherits account.res_config_settings_view_form |
view_payment_term_form |
account.payment.term.form.extension | account.payment.term | form | Inherits account.view_payment_term_form |
view_payment_term_holiday_tree |
Tree view for account.payment.term.holiday | account.payment.term.holiday | list | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (2)
-
holiday_idsOne2many → account.payment.term.holidaycomodel_name='account.payment.term.holiday'inverse_name='payment_id'string='Holidays' -
sequential_linesBooleandefault=Falsehelp='Allows to apply a chronological order on lines.'
-
apply_holidays(self, date) -
apply_payment_days(self, line, date)Calculate the new date with days of payments
New fields (3)
-
date_postponedDaterequired=Truestring='Postponed date' -
holidayDaterequired=True -
payment_idMany2one → account.payment.termcomodel_name='account.payment.term'ondelete='cascade'
-
check_holiday(self)@api.constrains('holiday', 'date_postponed')
New fields (4)
-
amount_roundFloatdigits='Account'help='Sets the amount so that it is a multiple of this value.'string='Amount Rounding' -
delay_typeSelectionondelete={'weeks_after': 'set default', 'weeks_after_end_of_month': 'set default', 'weeks_after_end_of_next_month': 'set default', 'months_after': 'set default', 'months_after_end_of_month': 'set default'}selection=<expr> -
payment_daysCharhelp='Put here the day or days when the partner makes the payment. Separate each possible payment day with dashes (-), commas (,) or spaces ( ).'string='Payment day(s)' -
valueSelectionondelete={'percent_amount_untaxed': <expr>}selection_add=[('percent_amount_untaxed', 'Percent (Untaxed amount)'), ('fixed')]
-
compute_line_amount(self, total_amount, remaining_amount, precision_digits)Compute the amount for a payment term line. In case of procent computation, use the payment term line rounding if defined :param total_amount: total balance to pay :param remaining_amount: total amount minus sum of previous lines computed amount :returns: computed amount for this line
New fields (1)
-
payment_terms_delay_typeSelectiondefault='days'help='Choose the type of delay when creating new payment terms.'selection=[('days', 'Days'), ('weeks', 'Days and Weeks'), ('months', 'Days and Months'), ('weeks_and_months', 'Days, Weeks and Months')]string='Payment terms Delay types'
No public methods.
New fields (1)
-
payment_terms_delay_typeSelectionreadonly=Falserelated='company_id.payment_terms_delay_type'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…