Project Task Default User
project_task_default_user · OCA/project
Health
67/100
fair
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
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.06 MB
Module directory on disk
Code analysis
0 migration notes
3 models
3 views
0 HTTP endpoints
Description
This module automatically assigns default users to tasks.
- Stage-based assignment (priority rule): When creating a task or changing its stage to one with default users, those users are automatically assigned according to the stage’s assignment mode (replace or merge). Stage-based defaults always take priority over project defaults.
- Project-based fallback: If the stage does not define any default users, project default users are applied using the same assignment mode logic (replace or merge).
- Assignment behavior: The assignment mode controls how users are applied:
- replace: replaces existing task users with default users
- merge: adds default users to the existing task users without removing them
- Multiple default users supported: Both project and stage can define multiple default users.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
project_edit_project_inherit_default_user |
project.edit.project.inherit.default.user | project.project | Inherits project.edit_project | |
project_task_type_edit_inherit_default_user |
project.task.type.edit.inherit.default.user | project.task.type | Inherits project.task_type_edit | |
project_task_type_tree_inherit_default_user |
project.task.type.tree.inherit.default.user | project.task.type | tree | Inherits project.task_type_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (2)
-
default_user_idsMany2many → res.usersdomain=<expr>help='If set, tasks will automatically be assigned to these users. On new tasks, this applies if no users are set. On stage change, the users are replaced only if the new stage has default users.'string='Default Users for Tasks' args: 'res.users' -
project_task_assignment_modeSelectiondefault='replace'help='Defines how default users are applied:\n- Replace: overwrite existing users\n- Merge: add default users to existing ones\n\nApplied on task creation and stage changes.' args: [('replace', 'Replace'), ('merge', 'Merge')]
No public methods.
New fields (0)
No new fields.
Public methods (2)-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
New fields (2)
-
default_user_idsMany2many → res.usersdomain=<expr>help='If set, tasks will automatically be assigned to these users. On new tasks, this applies if no users are set. On stage change, the users are replaced only if the new stage has default users.'string='Default Users for this Stage' args: 'res.users' -
stage_task_assignment_modeSelectiondefault='replace'help='Defines how default users are applied:\n- Replace: overwrite existing users\n- Merge: add default users to existing ones\n\nApplied on task creation and stage changes.' args: [('replace', 'Replace'), ('merge', 'Merge')]
No public methods.
Loading…