Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Purchase Management
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-07 09:06:27
Authors
Camptocamp, Odoo Community Association (OCA), Serpent CS, ForgeFlow
Maintainers
Camptocamp, Odoo Community Association (OCA), Serpent CS, ForgeFlow
Committers
Weblate, OCA-git-bot, oca-ci, cyrilmanuel
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
The sequence in PO line is propagated to the Stock moves. The sequence
number appears in the PO form view and in the report.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order form Inherits purchase.purchase_order_form
purchase_order_line_form purchase.order.line.form purchase.order.line form Inherits purchase.purchase_order_line_form2
report_invoice_document_inherit_purchase_sequence report_invoice_document_inherit_purchase_sequence ir.ui.view qweb Inherits account.report_invoice_document
report_purchase_order_sequence_qweb report_purchase_order_sequence_qweb ir.ui.view qweb Inherits purchase.report_purchaseorder_document
report_purchase_quote_sequence_qweb report_purchase_quote_sequence_qweb ir.ui.view qweb Inherits purchase.report_purchasequotation_document
view_move_form account.move.form account.move form Inherits account.view_move_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • related_po_sequence Char
    compute='_compute_related_po_sequence' string='PO Line Number'
Public methods (0)

No public methods.

New fields (1)
  • max_line_sequence Integer
    compute='_compute_max_line_sequence' string='Max sequence in lines'
Public methods (3)
  • create(self, vals_list)
    @api.model_create_multi
  • get_view(self, view_id=None, view_type='form', **options)
    @api.model
    Append the default sequence. Other modules might want to update the context of `order_line` as well. This will not scale overwriting the attribute in the view.
  • write(self, line_values)

New fields (2)
  • sequence Integer
    default=9999 help='Gives the sequence of the line when displaying the purchase order.' args: 'Hidden Sequence'
  • visible_sequence Integer
    compute='_compute_visible_sequence' help='Displays the sequence of the line in the purchase order.' store=True args: 'Line Number'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…