Repository
OCA/crm · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.15 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/crm
Last tracking update
2026-08-07 08:09:11
Authors
Odoo Community Association (OCA), Binhex
Maintainers
Odoo Community Association (OCA), Binhex
Committers
Weblate, OCA-git-bot, oca-ci, r.perez
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
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_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)