Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 19.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.05 MB
Module directory on disk
Code analysis 0 migration notes 1 model 0 views 0 HTTP endpoints

Description

Technical module providing line.numbering.mixin, a mixin that numbers the lines of a record (e.g. the lines of an order) with consecutive positions (1, 2, 3, ... or, with a step of 10, 10, 20, 30, ...), following the lines' order.

It has no functional effect on its own. It is a building block for modules that need a stable line reference, shown to users and exchanged with third parties (e.g. a position on purchase, sale or stock move lines).

Positions are renumbered automatically when lines are added or removed, in any state of the record. Consuming modules can opt out for specific records (e.g. records already sent to a partner).

Dependencies

Odoo dependencies
odoo/odoo:
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 0

No views found for this module.

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 1

New fields (0)

No new fields.

Public methods (3)
  • create(self, vals_list)
    @api.model_create_multi
    Number the lines of the new records.
  • renumber_lines_positions(self)
    Give the lines of `self` consecutive positions, in their order. Positions are multiples of `_line_numbering_step`. Only the lines whose position changes are written.
  • write(self, vals)
    Renumber the lines when the lines field is written.