Skip to content
Snippets Groups Projects
Commit 31497e17 authored by Aurélien Warnon's avatar Aurélien Warnon
Browse files

[FIX] crm: change default 'crm_alias_prefix' to 'contact'


This commit changes the default crm alias prefix from 'info' to 'contact'.

As the alias of the default sales team is configured to 'info', also having
'info' for the "crm_alias_prefix" setting was leading to an alias collision.

This change allows an easier configuration by the end user and avoids confusion
when first playing with your CRM settings.

Task 2373095

closes odoo/odoo#61025

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 878bffce
Branches
Tags
No related merge requests found
......@@ -85,7 +85,7 @@ class ResConfigSettings(models.TransientModel):
@api.depends('generate_lead_from_alias')
def _compute_crm_alias_prefix(self):
for setting in self:
setting.crm_alias_prefix = (setting.crm_alias_prefix or 'info') if setting.generate_lead_from_alias else False
setting.crm_alias_prefix = (setting.crm_alias_prefix or 'contact') if setting.generate_lead_from_alias else False
@api.model
def get_values(self):
......
......@@ -38,7 +38,7 @@
<div class="mt16">
<field name="crm_alias_prefix" class="oe_inline"
attrs="{'required': [('generate_lead_from_alias', '=', True)]}"/>
<label for="alias_domain" string="@"/>
<label class="mr-0" for="alias_domain" string="@"/>
<field name="alias_domain" readonly="1" force_save="1" class="oe_inline"/>
</div>
<div attrs="{'invisible': [('alias_domain', 'not in', ['localhost', '', False])]}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment