Skip to content

[18.0][ADD] sale_automatic_workflow_auto_assign: Allow workflows to be automatically assigned based on predicats#4445

Open
divad1196 wants to merge 2 commits into
OCA:18.0from
camptocamp:workflow-auto-assign
Open

[18.0][ADD] sale_automatic_workflow_auto_assign: Allow workflows to be automatically assigned based on predicats#4445
divad1196 wants to merge 2 commits into
OCA:18.0from
camptocamp:workflow-auto-assign

Conversation

@divad1196

@divad1196 divad1196 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Depends on PR: #4419
(Because of the global setting)

It adds a new module that allows to auto-assign workflows on sales based on a domain matching

@OCA-git-bot OCA-git-bot added series:18.0 mod:sale_automatic_workflow_auto_assign Module sale_automatic_workflow_auto_assign labels Jul 3, 2026
@divad1196
divad1196 force-pushed the workflow-auto-assign branch from 572ca36 to b1fe452 Compare July 3, 2026 10:03
@divad1196
divad1196 marked this pull request as ready for review July 3, 2026 10:24
@divad1196 divad1196 changed the title [ADD] sale_automatic_workflow_auto_assign: Allow workflows to be automatically assigned based on predicats [18.0][ADD] sale_automatic_workflow_auto_assign: Allow workflows to be automatically assigned based on predicats Jul 7, 2026
@@ -0,0 +1,19 @@
# Copyright 2024 Camptocamp SA

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the years correct?

@divad1196 divad1196 Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The module already existed on our side in a private repo.
I will have updated them

@divad1196
divad1196 force-pushed the workflow-auto-assign branch from 85a5640 to bf247e2 Compare July 9, 2026 06:48

@santostelmo santostelmo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR LG.

some improvement (optional):
Add a test that covers multiple matching workflows and proves the lowest priority value wins. The README and implementation both state that matching workflows are ordered by priority, but the current tests only cover a single workflow match / no match cases. Since priority is a core part of the feature contract, this should be locked down with a regression test in sale_automatic_workflow_auto_assign/tests/test_sale_workflow.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants