Sale Automatic Workflow Auto Assign
sale_automatic_workflow_auto_assign · OCA/sale-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module automatically assigns a sales workflow at sale order creation.
The workflow to assign is selected from the sale.workflow.process records flagged
as Auto assign, using their Auto assign domain (evaluated against the sale order)
and ordered by priority.
It also extends the Copy workflow on duplication setting of
sale_automatic_workflow with a third option, Copy if auto-assign finds none:
auto-assignment runs first when a sale order is duplicated, and the origin workflow is
copied only when no workflow could be auto-assigned.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
sale_workflow_process_view_form |
sale.order.form.automatic.auto.assign | sale.workflow.process | form | Inherits sale_automatic_workflow.sale_workflow_process_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
-
sale_workflow_copy_modeSelectionhelp="Controls whether the automatic workflow is propagated when a sale order is duplicated (this includes order splits):\n- Don't copy: the workflow is re-derived from the auto-assign rules only.\n- Copy: the origin workflow is always copied, auto-assign is not re-run.\n- Copy if auto-assign finds none: auto-assign runs first; the origin workflow is copied only when no workflow could be auto-assigned."ondelete={'copy_fallback': 'set default'}selection_add=[('copy_fallback', 'Copy if auto-assign finds none')]
No public methods.
No new fields.
Public methods (2)-
copy(self, default=None) -
create(self, vals_list)@api.model_create_multi
-
auto_assignBooleanhelp='When enabled the workflow will be assigned at sales order creation, if the assignation domain below applies.'string='Auto assign' -
auto_assign_domainTextstring='Auto assign domain' -
auto_assign_priorityIntegerdefault=10help='Determines the priority of the workflow when auto-assigning. Lower numbers have higher priority.'
No public methods.