Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
14284 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Please someone answer this question

Câu trả lời hay nhất

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>


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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. 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
18048
0
thg 3 24
1511
3
thg 2 25
26136
0
thg 5 15
3661
1
thg 3 15
4622