Overview
On long documents it is hard to refer to a specific row without counting. This module adds a running line number column to the line lists of sale orders, purchase orders, stock transfers, vendor bills and invoices, and journal entries. The number is display-only and is never stored, so no data changes. It is recomputed from the current order of the lines, so deleting a line renumbers the rest from 1 to n with no gaps. Sections, subsections and notes are not numbered. It works by inheriting the standard Odoo form and list views, adds no new models or access rules, and uses the standard access of each line model.
Usage steps
- 1
Sale order lines
Open Sales > Orders and a quotation: the order lines list shows a # column as its first column.
- Products are numbered 1 to n in screen order
- Sections and notes show no number
- 2
Purchase order lines
Open Purchase > Orders and an order: the order lines list carries the same # column.
- Same numbering rules as sales
- Display only, nothing is saved
- 3
Transfer operations
Open a transfer (receipt or delivery) and its Operations tab: every move is numbered 1 to n.
- The # column is the first column of the list
- Useful when checking a delivery line by line
- 4
Invoices and bills
Open an invoice or vendor bill: the Invoice Lines tab shows the # column before the handle.
- Invoice lines are numbered in screen order
- Sections and notes are skipped
- 5
Journal items
Open a journal entry's Journal Items tab, or Accounting > Journal Items: each line has a # number.
- The list column is optional and shown by default
- Numbers follow sequence, then id
Screens
Illustrative mockups with placeholder data.
Roles
| Role |
|---|
| Sales user |
| Purchasing user |
| Warehouse user |
| Accountant |
Dependencies
- sale
- purchase
- stock
- account
Related applications
Applications that work together with this one.
Purchase Order Lines
Also works on purchase order lines, adding other line-level helpers.
osloop_purchase_linesDelete Zero-Quantity Sale Lines
Deleting a line on a sale order renumbers the remaining lines.
osloop_sale_zero_line_deleteDelete Zero-Quantity Purchase Lines
Deleting a line on a purchase order renumbers the remaining lines.
osloop_purchase_zero_line_deleteList Arrow Key Navigation
Both improve editing of order and invoice lines.
osloop_list_arrow_navigationWant to know more or try this app? Contact us
Shows an automatic line number (#) beside every line of sale orders, purchase orders, transfers, invoices and journal items.