Line Numbers - Sale Order Line Number, Purchase Order Line Number, Invoice Line Number
by Modvanta$ 5.98

"Line 4 is short" only works if line 4 has a number.
Odoo shows order lines without numbers, so a vendor's phone call about "the fourth item" turns into counting rows on screen. This module puts a # column on sales orders, purchase orders, invoices, transfers, bills of materials and manufacturing orders, and prints the same number on the PDF your customer or vendor receives.
Written and supported by Modvanta - modvantaapps@gmail.com
What you get
Six kinds of documentsSales orders and quotations, purchase orders and RFQs, invoices, credit notes and bills, receipts and deliveries, BoM components and manufacturing order components. | Numbers that keep upDrag a line to the top and it becomes 1. Delete line 2 and the rest move up. A new line has its number before you even save. | Same number on paperThe quotation, order, RFQ, purchase order, invoice, picking operations, delivery slip, production order and BoM structure PDFs print a # column. Sections and notes are skipped. |
Who it is for
Anyone who talks about order lines with somebody else: purchasers chasing a vendor about one item on a 40-line PO, warehouse staff ticking off a delivery slip, accountants matching an invoice line to a complaint, or a workshop building from a BoM with sub-assemblies.
Screens from a test database
Taken on Odoo 19 with demo data and a few orders of our own. Nothing is mocked up.
A # column next to the drag handle
The quotation has two sections and a note. Only the four product lines get a number.

New lines are numbered straight away
We added a chair at the bottom. It shows 5 while the order is still unsaved.

Drag and drop renumbers the lines
The cable tray was dragged above the desk, so it is now line 1 and the desk moved to 2.

Printed on the quotation
The standard quotation and order report gets a # column. Section and note rows stay blank.

Purchase orders and RFQs
Your vendor sees the same numbers you see on the PO form, on the RFQ and on the purchase order.

Invoices, credit notes and bills
Line numbers follow the handle order of the invoice lines, including when some lines are hidden in a collapsed section.

Receipts, deliveries and internal transfers
The operations list of a transfer gets the column too.

Delivery slip
Numbered both before and after validation. After validation the number of the stock move is printed on each move line, so lots and packages keep the number of their line.

BoM structure with outline numbers
Components get 1, 2, 3, and the parts of a sub-assembly get 2.1, 2.2. Operations and by-products are not numbered.

One switch per document type
Settings -> General Settings -> Line Numbers. A document type only appears when its app is installed.

How it works
1 InstallNumbering is switched on for every installed app. Install Purchase or Manufacturing later and they get numbers as well, without touching this module. | 2 Work as usualAdd, move and delete lines. The # column is read-only and keeps itself in order. | 3 Use the normal Print menu. The number column is part of the standard report layout. |
Settings
Settings -> General Settings -> Line Numbers
| Sales orders and quotations - form and the quotation / order report. | |
| Purchase orders and RFQs - form, RFQ report and purchase order report. | |
| Invoices and bills - invoice lines and the invoice report (also credit notes and vendor bills). | |
| Transfers - operations list, picking operations report and delivery slip. | |
| Bills of materials - component list and the BoM structure report. | |
| Manufacturing orders - components list and the production order report. |
Questions
Do I need Sales, Purchase, Inventory and Manufacturing installed?
No. The module depends on nothing but the base settings app. It adds numbering to the apps you have, and to the ones you install later.
Is the number stored on the line?
No. It is worked out from the line order every time, so it can never go stale or show a gap after a deletion. That also means nothing to migrate if you uninstall.
Are section and note lines numbered?
No. Only real product lines are counted. On a sales order, combo items are counted like normal lines.
Will a report that hides some lines show different numbers?
No. A purchase order hides lines with zero quantity when printed, and the numbers of the other lines stay the same as on screen, so the vendor and you always talk about the same line.
Does it work with a custom report layout?
It extends the standard Odoo report templates. A heavily customised template that removes the standard columns may need a small adjustment; write to us.
Compatibility
Odoo 19.0CommunityEnterpriseOdoo.shOn premiseWorks with whichever of Sales, Purchase, Invoicing, Inventory and Manufacturing you use. 18 automated tests, run with and without demo data.
Give your order lines a number people can quote
Questions before you buy? Write to us and we will answer.
Buy Now - $6Ask a Question| EMAIL modvantaapps@gmail.com | AUTHOR Modvanta | INCLUDED Source code + email support |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module