[FIX] crm_iap_mine: remove duplicated model definition
before this commit crm.iap.lead.seniority model is defined twice inside the crm_iap_mine module. after this commit, the duplicated model defintion will be removed from the module closes odoo/odoo#130620 X-original-commit: 3712256a298a79786f7bbff9a608dcdcc224ce44 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
committed by
Thibault Delavallée
parent
562114c532
commit
358cb0417d
@@ -20,20 +20,3 @@ class PeopleRole(models.Model):
|
||||
def _compute_display_name(self):
|
||||
for role in self:
|
||||
role.display_name = role.name.replace('_', ' ').title()
|
||||
|
||||
|
||||
class PeopleSeniority(models.Model):
|
||||
""" Seniority for People Rules """
|
||||
_name = 'crm.iap.lead.seniority'
|
||||
_description = 'People Seniority'
|
||||
|
||||
name = fields.Char(string='Name', required=True, translate=True)
|
||||
reveal_id = fields.Char(required=True)
|
||||
|
||||
_sql_constraints = [
|
||||
('name_uniq', 'unique (name)', 'Name already exists!'),
|
||||
]
|
||||
|
||||
def _compute_display_name(self):
|
||||
for seniority in self:
|
||||
seniority.display_name = seniority.name.replace('_', ' ').title()
|
||||
|
||||
Reference in New Issue
Block a user