Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Purchase Management
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-07 08:23:03
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Weblate, OCA-git-bot, oca-ci, juancarlosonate-tecnativa
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module was written to extend the functionality of purchase order
and allow you to manage sort of lines.

You can set the default sort order for the current company or you can
set sort order for a particular purchase order.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_form purchase.order form Inherits purchase.purchase_order_form
res_config_settings_view_form res.config.settings.purchase.sort res.config.settings form Inherits purchase.res_config_settings_view_form_purchase
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (2)
  • line_direction Selection
    default=<expr> selection=SORTING_DIRECTION string='Sort Direction'
  • line_order Selection
    default=<expr> selection=SORTING_CRITERIA string='Sort Lines By'
Public methods (3)
  • create(self, values)
    @api.model
  • onchange_line_order(self)
    @api.onchange('line_order')
  • write(self, values)

New fields (0)

No new fields.

Public methods (1)
  • create(self, vals)
    @api.model

New fields (2)
  • default_po_line_direction Selection
    help='Select a sorting direction for purchase order lines.' selection=SORTING_DIRECTION string='Sort Direction'
  • default_po_line_order Selection
    help='Select a sorting criteria for purchase order lines.' selection=SORTING_CRITERIA string='Line Order'
Public methods (0)

No public methods.

New fields (2)
  • po_line_direction_default Selection
    readonly=False related='company_id.default_po_line_direction' string='Sort Direction'
  • po_line_order_default Selection
    readonly=False related='company_id.default_po_line_order' string='Line Order'
Public methods (1)
  • onchange_po_line_order_default(self)
    @api.onchange('po_line_order_default')
    Reset direction line order when user remove order field value

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…