Skip to Content
Menu
This question has been flagged
1 Reply
2308 Views

Hello everyone 

I am looking for assistance in hiding all monetary functions in the CRM.

To be specific there is a $ symbol in each stage column of the progress bar that I would like to remove. It looks to be expected revenue in list view and kanban view but have not had any luck removing the monetary tracking




+





I believe this to be the function but have no success in hiding it via inheritance

I'd like to keep the progress bar just remove monetary functions 

Thanks in advance

Justin


Avatar
Discard

Are you are looking to remove the sum of expected revenue (sum_field="expected_revenue") in the crm.lead.kanban.lead view?

Author

yes jaideep I am

Best Answer

You just need to remove widget="monetary" from the fields in kanban.

Try following code for kanban:


field name="expected_revenue" position="attributes">
attribute name="widget">
/field>
field name="recurring_revenue" position="attributes">
attribute name="widget">
/field>

Try following code for list view:

field name="expected_revenue" position="attributes">

/field>


Avatar
Discard

It's weird that I cannot write a code in the answer.
Try following code for kanban:

<field name="expected_revenue" position="attributes">
<attribute name="widget"></attribute>
</field>
<field name="recurring_revenue" position="attributes">
<attribute name="widget"></attribute>
</field>

Try following code for list view:

<field name="expected_revenue" position="attributes">
<attribute name="widget"></attribute>
</field>

Author

Thank you Sudhir I will try this. I do not see where in your code however that you are removing the widget. I would love an explanation of this haha.

Monetary widget adds a currency symbol before/after the amount if your object has a currency_id m2o field.

Author

<odoo>
<record id="crm_lead_inherit" model="ir.ui.view">
<field name="name">crm.lead.inherit</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='planned_revenue']" position="attributes">
<attribute name="widget"></attribute>
</xpath>
<xpath expr="//field[@name='planned_revenue']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
</odoo>

Hi sudhir so I tried your suggestion. I am not seeing any changes at all.
any ideas?

Related Posts Replies Views Activity
0
Jun 22
1336
0
Aug 24
188
1
Aug 24
421
2
Nov 24
752
2
Mar 24
257