TIP: You can type at any time to perform a new search.
Rounding on payment term
payment_term_rounding · OCA/account-invoicing
- 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