Skip to content

Commit

Permalink
[FIX] crm: Leads Analysis report
Browse files Browse the repository at this point in the history
The Leads Analysis report should filter on "Leads" by default.

opw-760265
  • Loading branch information
nim-odoo committed Jul 27, 2017
1 parent 4fdfdb2 commit 66c22ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions addons/crm/i18n/crm.pot
Expand Up @@ -3853,8 +3853,7 @@ msgstr ""

#. module: crm
#: model:ir.actions.act_window,help:crm.crm_opportunity_report_action_lead
msgid "This report analyses the source of your leads\n"
"(including those converted into opportunities)."
msgid "This report analyses the source of your leads."
msgstr ""

#. module: crm
Expand Down
5 changes: 2 additions & 3 deletions addons/crm/report/crm_opportunity_report_views.xml
Expand Up @@ -188,13 +188,12 @@ with the the sales teams.</field>
<field name="res_model">crm.opportunity.report</field>
<field name="view_type">form</field>
<field name="view_mode">pivot,graph</field>
<field name="context">{'search_default_current': True, 'active_test': True}</field>
<field name="context">{'search_default_current': True, 'active_test': True, 'search_default_lead': True}</field>
<field name="view_ids"
eval="[(5, 0, 0),
(0, 0, {'view_mode': 'pivot', 'view_id': ref('crm_opportunity_report_view_pivot_lead')}),
(0, 0, {'view_mode': 'graph', 'view_id': ref('crm_opportunity_report_view_graph_lead')})]"/>
<field name="help">This report analyses the source of your leads
(including those converted into opportunities).</field>
<field name="help">This report analyses the source of your leads.</field>
</record>

<menuitem
Expand Down

0 comments on commit 66c22ab

Please sign in to comment.