Purchase order lines with sequence number

purchase_order_reorder_lines
REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/8.0/purchase_order_reorder_lines
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSStéphane Bidoul, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, Damien Crier, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:26
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/stock-logistics-workflow:
    - stock_picking_reorder_lines
odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - report
    - procurement
    - board
    - web_kanban_gauge
    - web_kanban_sparkline
    - account
    - analytic
    - edi
    - email_template
    - sale
    - sales_team
    - account_voucher
    - sale_stock
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_order_line_form purchase.order.line.form purchase.order.line field Inherits purchase.purchase_order_line_form
Models touched (3)

New fields (1)
  • max_line_sequence Integer
    compute='compute_max_line_sequence' string='Max sequence in lines'
Public methods (1)
  • compute_max_line_sequence(self)
    @api.one@api.depends('order_line')
    Allow to know the highest sequence entered in purchase order lines. Web add 10 to this value for the next sequence This value is given to the context of the o2m field in the view. So when we create new purchase order lines, the sequence is automatically max_sequence + 10

New fields (1)
  • sequence Integer
    default=10 help='Gives the sequence of this line when displaying the purchase order.'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • makeInvoices(self)
    @api.multi
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/7.0/purchase_order_reorder_lines
VERSION
VERSION 0.1
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSLorenzo Battistini, Alexandre Fayolle, Stéphane Bidoul (ACSONE), unknown
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/sale-workflow:
    - stock_picking_reorder_lines
    - account_invoice_reorder_lines
odoo/odoo:
    - purchase
    - stock
    - product
    - base
    - process
    - web
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - account
    - analytic
    - board
    - edi
    - email_template
    - procurement
    - sale
    - account_voucher
    - sale_stock
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Provide a new field on the purchase order form, allowing to manage the lines
order.
    

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_order_line_form purchase.order.line.form purchase.order.line field Inherits purchase.purchase_order_line_form
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • makeInvoices(self, cr, uid, ids, context=None)