[IMP] crm: remove outdated fields

PURPOSE

Improve performance in often used views and fields in a normal Odoo usage.

SPECIFICATIONS

On crm.lead model

  * remove field user_email and user_login fields. Those are related non stored
    and used in kanban for no reason (or even not used). Those can be removed
    completely;

Original commit seems to be odoo/odoo@ea2e8b64c4 which seems to show those
fields were added to add a gravtar based on user email, and its login was used
to display "responsible". Maybe an internal Odoo related spec, anyway not used
anymore.

Task-2752043

Part-of: odoo/odoo#83806
This commit is contained in:
Thibault Delavallée
2022-02-15 10:25:57 +00:00
parent 45b38f52bb
commit 5664ee04f4
3 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
{
'name': 'CRM',
'version': '1.7',
'version': '1.8',
'category': 'Sales/CRM',
'sequence': 15,
'summary': 'Track leads and close opportunities',
-2
View File
@@ -110,8 +110,6 @@ class Lead(models.Model):
user_company_ids = fields.Many2many(
'res.company', compute='_compute_user_company_ids',
help='UX: Limit to lead company or all if no company')
user_email = fields.Char('User Email', related='user_id.email', readonly=True)
user_login = fields.Char('User Login', related='user_id.login', readonly=True)
team_id = fields.Many2one(
'crm.team', string='Sales Team', check_company=True, index=True, tracking=True,
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]",
-1
View File
@@ -531,7 +531,6 @@
<field name="expected_revenue"/>
<field name="kanban_state"/>
<field name="activity_date_deadline"/>
<field name="user_email"/>
<field name="user_id"/>
<field name="partner_id"/>
<field name="activity_summary"/>