Files
odoo_source/addons/crm/views/res_config_settings_views.xml
T
Thibault Delavallée 1ee68e6119 [REF] crm: remove global lead alias
PURPOSE

Remove the alias setting option because it is a weird and hackish way to
proceed. We would prefer users to configure their alias through sales teams.
Improve alias configuration on teams.

RATIONALE

"​Incoming Emails" option has many flaws

  * it creates collision when you try to set an alias that is already used
    and it is not easy to find them back;
  * it has no default value (no sales team, no type, ...) and works through the
    'owner' field. This is set with the admin on activation of the feature
    which is not correct.  The admin is potentially not a salesperson. If you
    set the field to blank, you get leads without team and without assigned
    responsible.
  * this alias is not team-bound which thus asks the question: in which team
    should the lead ever go? To the first team? Why?

All this make it seem way healthier to handle this through the Sales Team.
=> By default, we'll already have one working with an alias.

If users really want a global lead alias it can be setup manually through
alias menu in configuration. Shortcut and default alias in crm are removed
but feature is still doable if requested.

SPECIFICATIONS

Remove the s "Incoming emails" setting that allows to setup a global alias for
leads / opportunities with a default value being 'contact'. Also remove related
alias data as it has no use anymore.

LINKS

Task ID-2414079
Sort of follow-up of Task ID-2373095.
COM PR odoo/odoo#63160
UPG PR odoo/upgrade#2017
2021-01-05 11:15:27 +00:00

150 lines
9.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.crm</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="5"/>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('settings')]" position="inside">
<div class="app_settings_block" data-string="CRM" string="CRM" data-key="crm" groups="sales_team.group_sale_manager">
<h2>CRM</h2>
<div class="row mt16 o_settings_container">
<div class="col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="group_use_recurring_revenues"/>
</div>
<div class="o_setting_right_pane">
<label for="group_use_recurring_revenues"/>
<div class="text-muted">
Define recurring plans and revenues on Opportunities
</div>
<div attrs="{'invisible': [('group_use_recurring_revenues', '=', False)]}">
<button type="action" name="crm.crm_recurring_plan_action"
string="Manage Recurring Plans" icon="fa-arrow-right" class="oe_link"/>
</div>
</div>
</div>
<div class="col-lg-6 o_setting_box" id="crm_lead"
title="Use leads if you need a qualification step before creating an opportunity or a customer. It can be a business card you received, a contact form filled in your website, or a file of unqualified prospects you import, etc. Once qualified, the lead can be converted into a business opportunity and/or a new customer in your address book.">
<div class="o_setting_left_pane">
<field name="group_use_lead"/>
</div>
<div class="o_setting_right_pane">
<label for="group_use_lead"/>
<div class="text-muted">
Add a qualification step before the creation of an opportunity
</div>
</div>
</div>
</div>
<div class="row mt16 o_settings_container">
<div class="col-lg-6 o_setting_box"
title="This can be used to compute statistical probability to close a lead"
name="predictive_lead_setting_container">
<div class="o_setting_left_pane"></div>
<div class="o_setting_right_pane">
<b>Predictive Lead Scoring</b>
<div class="text-muted">
The success rate is computed based on the stage, but you can add more fields in the statistical analysis.
</div>
<div class="mt16">
<field name="predictive_lead_scoring_fields" class="oe_inline" widget="many2many_tags" placeholder="Extra fields..."/>
<field name="predictive_lead_scoring_fields_str" invisible="1"/>
</div>
<div class="mt16">
Consider leads created as of the
<field name="predictive_lead_scoring_start_date_str" invisible="1"/>
<field name="predictive_lead_scoring_start_date" class="oe_inline" required="1"/>
</div>
<div class="mt16" groups="base.group_erp_manager">
<div class="text-muted">
Use this button to update the probabilities of all leads. This can take up to several minutes depending on how many there are.
</div>
<button name="action_reset_lead_probabilities" type="object" string="Update Probabilities" class="btn-primary"/>
</div>
</div>
</div>
</div>
<h2>Lead Generation</h2>
<div class="row mt16 o_settings_container" name="convert_visitor_setting_container">
<div class="col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_mail_client_extension"/>
</div>
<div class="o_setting_right_pane" id="mail_client_extension">
<label string="Outlook CRM Extension" for="module_mail_client_extension"/>
<a href="https://www.odoo.com/documentation/user/crm/optimize/outlook_extension.html" title="Documentation" class="o_doc_link" target="_blank"></a>
<div class="text-muted">
Turn emails received in your Outlook mailbox into leads and log their content as internal notes.
</div>
</div>
</div>
<div class="col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_crm_iap_lead_enrich"/>
</div>
<div class="o_setting_right_pane" id="crm_iap_lead_enrich">
<label string="Lead Enrichment" for="module_crm_iap_lead_enrich"/>
<div class="text-muted">
Enrich your leads automatically with company data based on their email address
</div>
<div id="crm_iap_lead_enrich">
<div class="mt8" attrs="{'invisible': [('module_crm_iap_lead_enrich','=',False)]}">
<field name="lead_enrich_auto" class="o_light_label" widget="radio" required="True"/>
</div>
</div>
</div>
</div>
</div>
<div class="row mt16 o_settings_container" name="generate_lead_setting_container">
<div class="col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_crm_iap_lead"/>
</div>
<div class="o_setting_right_pane" id="crm_iap_lead_settings">
<label string="Lead Mining" for="module_crm_iap_lead"/>
<a href="https://www.odoo.com/documentation/user/14.0/crm/acquire_leads/lead_mining.html" title="Documentation" class="o_doc_link" target="_blank"></a>
<div class="text-muted">
Generate new leads based on their country, industry, size, etc.
</div>
</div>
</div>
<div class="col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_crm_iap_lead_website"/>
</div>
<div class="o_setting_right_pane" id="crm_iap_lead_website_settings">
<label string="Visits to Leads" for="module_crm_iap_lead_website"/>
<div class="text-muted">
Convert visitors of your website into leads and perform data enrichment based on their IP address
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
<record id="crm_config_settings_action" model="ir.actions.act_window">
<field name="name">Settings</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.config.settings</field>
<field name="view_id" ref="res_config_settings_view_form"/>
<field name="view_mode">form</field>
<field name="target">inline</field>
<field name="context">{'module' : 'crm', 'bin_size': False}</field>
</record>
<record id="crm_config_settings_menu" model="ir.ui.menu">
<field name="action" ref="crm.crm_config_settings_action"/>
</record>
</odoo>