Hi,
how i can disable option to edit and delete messages in chatter widget in my module? Im using odoo 18 community edition
Hi,
how i can disable option to edit and delete messages in chatter widget in my module? Im using odoo 18 community edition
You can setup an Automation Rule like this:

for record in records:
if record.create_date != record.write_date:
raise UserError('Editing/Deleting Chatter Messages has been disabled!')
The rule would be define on the mail.message model, with the trigger Create and Edit. When updating would be left blank. The if statement on line 2 ensures that the rule only runs on edits / updates / deletions and not the creation of new messages.
Hello Damian Bielecki,
To disable the delete and edit buttons in the chat, please refer to the following link:
https://www.odoo.com/vi_VN/forum/support-1/avoid-deleting-log-note-270866
If you have any questions or need further assistance, feel free to reach out.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
Change text of Log Note Button
Rezolvat
|
1
iul. 25
|
2543 | ||
|
2
nov. 24
|
6870 | |||
|
1
mar. 26
|
1586 | |||
|
Change chatter size?
Rezolvat
|
1
mar. 26
|
5439 | ||
|
0
dec. 25
|
75 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.