[MOV] crm_iap_lead: move crm.iap.lead.industry into its own file
Preparation commit where we simply move the crm.iap.lead.industry model into its own file. As we are about to make some changes to the industry, we use that opportunity to do a bit of cleaning. Task-2471703
This commit is contained in:
@@ -3,4 +3,5 @@
|
||||
from . import crm_lead
|
||||
from . import crm_iap_lead
|
||||
from . import crm_iap_lead_helpers
|
||||
from . import crm_iap_lead_industry
|
||||
from . import crm_iap_lead_mining_request
|
||||
|
||||
@@ -1,20 +1,6 @@
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class IndustryTag(models.Model):
|
||||
""" Industry Tags of Acquisition Rules """
|
||||
_name = 'crm.iap.lead.industry'
|
||||
_description = 'Industry Tag'
|
||||
|
||||
name = fields.Char(string='Industry', required=True, translate=True)
|
||||
reveal_id = fields.Char(required=True)
|
||||
color = fields.Integer(string='Color Index')
|
||||
|
||||
_sql_constraints = [
|
||||
('name_uniq', 'unique (name)', 'Tag name already exists!'),
|
||||
]
|
||||
|
||||
|
||||
class PeopleRole(models.Model):
|
||||
""" CRM Reveal People Roles for People """
|
||||
_name = 'crm.iap.lead.role'
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class CrmIapLeadIndustry(models.Model):
|
||||
""" Industry Tags of Acquisition Rules """
|
||||
_name = 'crm.iap.lead.industry'
|
||||
_description = 'CRM IAP Lead Industry'
|
||||
|
||||
name = fields.Char(string='Industry', required=True, translate=True)
|
||||
reveal_id = fields.Char(required=True)
|
||||
color = fields.Integer(string='Color Index')
|
||||
|
||||
_sql_constraints = [
|
||||
('name_uniq', 'unique (name)', 'Industry name already exists!'),
|
||||
]
|
||||
Reference in New Issue
Block a user