Rounding on payment term

payment_term_rounding
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/7.0/payment_term_rounding
VERSION
VERSION 1.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSYannick Vaucher, Lorenzo Battistini, Alexandre Fayolle, Pedro M. Baeza, Stéphane Bidoul (ACSONE), Alex Comba, Vincent Renaville, OCA Transbot, vrenaville
WEBSITE
WEBSITEhttp://www.camptocamp.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - process
    - decimal_precision
    - mail
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Giving rounding functionality at payment term line level

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_payment_term_line_form account.payment.term.line.form.add.rounding account.payment.term.line div Inherits account.view_payment_term_line_form
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