CRM Team ZIP Assignment
crm_team_zip_assign · OCA/crm
Health
55/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 11 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 16.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.15 MB
Module directory on disk
Code analysis
2 migration notes
3 models
3 views
0 HTTP endpoints
Migration considerations
CrmTeamZipPattern— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourcecrm_team_view_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
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 |
|---|---|---|---|---|
crm_team_view_form |
crm.team.form.zip.assign | crm.team | form | Inherits sales_team.crm_team_view_form |
crm_team_view_tree |
crm.team.tree.zip.assign | crm.team | tree | Inherits sales_team.crm_team_view_tree |
view_partner_form |
res.partner.form.zip.assign | res.partner | form | Inherits base.view_partner_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (6)
-
country_idsMany2many → res.countrydefault=<expr>help='Countries where this team operates'string='Countries' args: 'res.country' -
enable_zip_auto_assignmentBooleandefault=Falsehelp='If checked, this team will be considered for automatic assignment based on ZIP code patterns.'string='Enable Auto ZIP Assignment' -
pre_zip_match_conditionCharhelp='If present, this condition must be satisfied before matching the zip regular expression.'string='Pre-Zip Match Condition' -
state_idsMany2many → res.country.statehelp='States where this team operates'string='States' args: 'res.country.state' -
zip_assignment_priorityIntegerdefault=0help='Higher priority teams will be preferred when multiple teams match the same ZIP code. Higher number = higher priority.'string='Assignment Priority' -
zip_regex_idsOne2many → crm.team.zip.patterncomodel_name='crm.team.zip.pattern'help='Regular expression patterns to match partner ZIP codes'inverse_name='team_id'string='ZIP Regex'
No public methods.
New fields (3)
-
nameCharcompute='_compute_name'store=True -
patternCharhelp="Python regular expression pattern to match ZIP codes. Example: '^1[0-5].*' for ZIP codes starting with 10-15"required=Truestring='ZIP Pattern' -
team_idMany2one → crm.teamcomodel_name='crm.team'ondelete='cascade'required=Truestring='CRM Team'
No public methods.
New fields (1)
-
exclude_from_zip_assignBooleandefault=Falsehelp='If checked, this partner will not be automatically assigned to a CRM team based on ZIP code patterns.'string='Exclude from ZIP Assignment'
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)