Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
14268 Zobrazení

I only want to keep the "Log a note" feature in opportunities and partners.

Avatar
Zrušit

If you got the solution then please let me know as I also want to know the solution

Please someone answer this question

Nejlepší odpověď

Hey there, I don't know if someone else is faced with a similar issue.
I'm using Odoo version 15. and for disable the Send Message option on version 15 you can change the xml code on this location.

addons/mail/static/src/components/chatter_topbar/chatter_topbar.xml :

You can add simple a style in the "Send Message", I added style="display:none;"

<button class="btn btn-link o_ChatterTopbar_button o_ChatterTopbar_buttonSendMessage"type="button"t-att-class="{                                'o-active': chatter.composerView and !chatter.composerView.composer.isLog,                                'o-bordered': chatter.hasExternalBorder,                            }"t-att-disabled="chatter.isDisabled"title="Send a message"data-hotkey="m"t-on-click="chatter.onClickSendMessage">                            Send messagebutton>


Avatar
Zrušit
Nejlepší odpověď

In odoo13, i tried to uninstall crm_sms that did not work. So I followed Stefan's suggestion, comment the html under chatter.xml (no more mail.xml in odoo13), it works

Avatar
Zrušit
Nejlepší odpověď

Kind of late, but it may help some others.

For Odoo v13.

I've achieved it by uninstalling sms module from apps, it works for all sms features in Odoo, but if you want to disable them only for CRM there's a module named crm_sms I suppose uninstalling it would disable the feature for CRM only. 

Avatar
Zrušit
Nejlepší odpověď

For now I've changed /usr/lib/pymodules/python2.6/openerp/addons/mail/static/src/xml/mail.xml

146c146
< <input type="checkbox" t-att-data="recipient.full_name"/>
---
> <input type="checkbox" t-att-checked="recipient.checked ? 'checked' : undefined" t-att-data="recipient.full_name"/>

This way, our users have to explicitely choose to send a message externally. It's not what you originally wanted but it might be a workaround for the interim.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
18039
0
bře 24
1502
3
úno 25
26129
0
kvě 15
3654
1
bře 15
4610