purchase_order_line_sequence
This module adds sequence numbering to purchase order lines and propagates it to related stock moves and invoice lines.
Key Features
- purchase.order.line: Adds a visible sequence number to purchase order lines that is computed based on their order, skipping sections and notes.
- purchase.order: Automatically assigns sequence numbers to new purchase order lines and updates sequences on related stock moves when purchase orders are created or modified.
- stock.move: Sets the sequence of stock moves to match the sequence of their corresponding purchase order lines and prevents manual sequence changes for moves linked to purchase orders.
- account.move.line: Displays the purchase order line sequence in invoice lines, formatted as the sequence number or PO name/sequence when multiple purchase orders are invoiced together.
- purchase: Displays line numbers in purchase order forms and reports.
- accounting: Displays related purchase order line sequences in invoice reports.