Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 8 Odoo series since 11.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 0 migration notes 4 models 2 views 0 HTTP endpoints

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.

Section, subsection and note lines are not part of the sorting: they stay where you placed them, and the sorting criteria is only applied to the product lines inside each of the blocks they delimit.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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, vals_list)
    @api.model_create_multi
  • onchange_line_order(self)
    @api.onchange('line_order')
  • write(self, values)

New fields (0)

No new fields.

Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi

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…

Loading…