Purchase Order Line Deep Sort
purchase_order_line_deep_sort · OCA/purchase-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 8 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
-
line_directionSelectiondefault=<expr>selection=SORTING_DIRECTIONstring='Sort Direction' -
line_orderSelectiondefault=<expr>selection=SORTING_CRITERIAstring='Sort Lines By'
-
create(self, vals_list)@api.model_create_multi -
onchange_line_order(self)@api.onchange('line_order') -
write(self, values)
No new fields.
Public methods (1)-
create(self, vals_list)@api.model_create_multi
-
default_po_line_directionSelectionhelp='Select a sorting direction for purchase order lines.'selection=SORTING_DIRECTIONstring='Sort Direction' -
default_po_line_orderSelectionhelp='Select a sorting criteria for purchase order lines.'selection=SORTING_CRITERIAstring='Line Order'
No public methods.
-
po_line_direction_defaultSelectionreadonly=Falserelated='company_id.default_po_line_direction'string='Sort Direction' -
po_line_order_defaultSelectionreadonly=Falserelated='company_id.default_po_line_order'string='Line Order'
-
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…