[IMP] crm: display currency after Expected Revenue in lead list view

This commit displays the currency of the `Expected Revenue` field of
lead in the list view.

Known drawback : the sum is not correct if multiple currencies are involved.

Task-ID 2238661
Closes #49954

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Lavish Chhatwani
2020-05-14 13:17:48 +00:00
committed by Thibault Delavallée
parent d6d0e8d6d2
commit 35308b674c
+2 -1
View File
@@ -614,7 +614,8 @@
<field name="probability" avg="Avg. of Probability" optional="hide"/>
<field name="user_id" optional="show"/>
<field name="team_id" optional="show"/>
<field name="planned_revenue" sum="Expected Revenues" optional="show"/>
<field name="company_currency" invisible="1"/>
<field name="planned_revenue" sum="Expected Revenues" optional="show" widget='monetary' options="{'currency_field': 'company_currency'}"/>
<field name="referred" invisible="1"/>
<field name="message_needaction" invisible="1"/>
<field name="probability" invisible="1"/>