CRM Team ZIP Assignment

crm_team_zip_assign
REPOSITORY
REPOSITORYOCA/crm
GIT
GIThttps://github.com/OCA/crm.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/crm/tree/16.0/crm_team_zip_assign
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Binhex
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Binhex
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, r.perez
WEBSITE
WEBSITEhttps://github.com/OCA/crm
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:42
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - crm
    - base_setup
    - base
    - web
    - sales_team
    - mail
    - bus
    - web_tour
    - calendar
    - resource
    - utm
    - web_kanban_gauge
    - contacts
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - phone_validation
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
crm_team_view_form crm.team.form.zip.assign crm.team xpath Inherits sales_team.crm_team_view_form
crm_team_view_tree crm.team.tree.zip.assign crm.team xpath Inherits sales_team.crm_team_view_tree
view_partner_form res.partner.form.zip.assign res.partner xpath Inherits base.view_partner_form
Models touched (3)

New fields (6)
  • country_ids Many2many → res.country
    default=<expr> help='Countries where this team operates' string='Countries' args: 'res.country'
  • enable_zip_auto_assignment Boolean
    default=False help='If checked, this team will be considered for automatic assignment based on ZIP code patterns.' string='Enable Auto ZIP Assignment'
  • pre_zip_match_condition Char
    help='If present, this condition must be satisfied before matching the zip regular expression.' string='Pre-Zip Match Condition'
  • state_ids Many2many → res.country.state
    help='States where this team operates' string='States' args: 'res.country.state'
  • zip_assignment_priority Integer
    default=0 help='Higher priority teams will be preferred when multiple teams match the same ZIP code. Higher number = higher priority.' string='Assignment Priority'
  • zip_regex_ids One2many → crm.team.zip.pattern
    comodel_name='crm.team.zip.pattern' help='Regular expression patterns to match partner ZIP codes' inverse_name='team_id' string='ZIP Regex'
Public methods (0)

No public methods.

New fields (3)
  • name Char
    compute='_compute_name' store=True
  • pattern Char
    help="Python regular expression pattern to match ZIP codes. Example: '^1[0-5].*' for ZIP codes starting with 10-15" required=True string='ZIP Pattern'
  • team_id Many2one → crm.team
    comodel_name='crm.team' ondelete='cascade' required=True string='CRM Team'
Public methods (0)

No public methods.

New fields (1)
  • exclude_from_zip_assign Boolean
    default=False help='If checked, this partner will not be automatically assigned to a CRM team based on ZIP code patterns.' string='Exclude from ZIP Assignment'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)