OdooWiki OCA HUB

Purchase Order Line Sequence

purchase_order_line_sequence folder_open OCA/purchase-workflow open_in_new
Purchase Management License: AGPL-3

The sequence in PO line is propagated to the Stock moves. The sequence number appears in the PO form view and in the report.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a visible line number to purchase order lines, shows it on purchase orders, quotations and vendor bills, and copies the same number onto the related stock moves.

This module gives every purchase order line a clear line number so that buyers and suppliers can refer to "line 3" instead of describing the product.

  • On a request for quotation or purchase order, a new "Line Number" column appears in the lines list, numbered from 1 in the order the lines are shown. The same column is added to the printed Purchase Order and Request for Quotation reports.
  • When a new line is added, its number is filled in automatically as the highest number already used plus one, so lines keep a stable numbering even if you reorder them.
  • The number is carried over to the stock moves created from the purchase order, so the receipt lines follow the same numbering as the purchase order lines.
  • On vendor bills and vendor refunds, an extra "PO Line Number" column shows which purchase order line each invoice line comes from. If the bill covers several purchase orders, the purchase order reference is shown together with the line number.
  • Changing the sequence directly on a stock move that comes from a purchase order is blocked with an error message telling the user to change it on the purchase order instead.

The module touches purchase.order, purchase.order.line, stock.move and account.move.line, and adds columns to the purchase order form, the purchase order line form, the invoice form and the related PDF reports.

Depends on

Required by other modules

Models and fields (4)
  • stock.move · extends an existing model
  • purchase.order · extends an existing modelmax_line_sequence (Max sequence in lines)
  • account.move.line · extends an existing modelrelated_po_sequence (PO Line Number)
  • purchase.order.line · extends an existing modelsequence (Hidden Sequence), visible_sequence (Line Number)

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/purchase-workflow.

terminal Installation and usage

OCA documentation · Odoo 19.0

This module depends on the following module(s) :

  • stock_picking_line_sequence ()

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.