Skip to content
Health
35/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 124 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 7.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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
0.33 MB
Module directory on disk
Code analysis 5 migration notes 2 models 1 view 0 HTTP endpoints

Description

Giving rounding functionality at payment term line level

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
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