Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3137 Weergaven

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
Annuleer

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

Auteur

yes jaideep I am

Beste antwoord

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
Annuleer

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>

Auteur

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.

Auteur

<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?

Gerelateerde posts Antwoorden Weergaven Activiteit
0
jun. 22
2113
2
aug. 25
1171
0
mei 25
654
4
feb. 25
2374
0
aug. 24
1000