TIP: You can type at any time to perform a new search.
Rounding on payment term
payment_term_rounding · OCA/account-invoicing
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools.float_utils` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.addons.decimal_precision` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
AccountPaymentTerm— Class 'AccountPaymentTerm' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceAccountPaymentTermLine— Class 'AccountPaymentTermLine' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceAccountPaymentTermLine— Class 'AccountPaymentTermLine' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_payment_term_line_form— For a target of Odoo 17.0+: view 'view_payment_term_line_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 · 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-invoicing · module folder · Try on Runboat
- Module version
- 1.0
- Category
- Accounting
- Folder size
- 0.33 MB
- License
- LGPL-3
- Application
- Yes
- Auto-installable
- No
- Website
- http://www.camptocamp.com/
- Last tracking update
- 2026-08-07 06:56:09
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp
- Committers
- Yannick Vaucher, Lorenzo Battistini, Alexandre Fayolle, Pedro M. Baeza, Stéphane Bidoul (ACSONE), Vincent Renaville, Alex Comba, OCA Transbot, vrenaville
Code Analysis
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_payment_term_line_form |
account.payment.term.line.form.add.rounding | account.payment.term.line | form | Inherits account.view_payment_term_line_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (0)
No new fields.
Public methods (1)-
compute(self, cr, uid, rec_id, value, date_ref=False, context=None)Complete overwrite of compute method to add rounding on line computing.
New fields (0)
No new fields.
Public methods (1)-
compute_line_amount(self, cr, uid, rec_id, total_amount, remaining_amount, context=None)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