Base Line Numbering
base_line_numbering · OCA/server-ux
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 19.0
Heuristic over the facts below, not an audit · How it's computed
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:- base
- 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
No new fields.
Public methods (3)-
create(self, vals_list)@api.model_create_multiNumber 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.