Currently when they generate "log note", it has the option to delete, I want to remove this option for all users
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kirjanpito
- Varastointi
- PoS
- Project
- MRP
Tämä kysymys on merkitty
Hello, Jesus Pineda,
To remove the delete button for log notes for all users, follow these steps:
1. Import messageActionsRegistry in Your Module's JS File:
File: static/src/js/remove_message_delete.js
//Code 1 in comment//
2. Update the __manifest__.py File:
File: __manifest__.py
//Code 2 in comment//
Make sure to add the path to the new JavaScript file under the web.assets_backend key.
3. Output:
Once implemented, the delete button will no longer be available for log notes in the system.
Hope this helps! If you need further assistance with customization, feel free to contact us.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Code 1 :
/* @odoo-module */
// Import messageActionsRegistry to remove the delete button
import { messageActionsRegistry } from "@mail/core/common/message_actions";
messageActionsRegistry.remove("delete");
Code 2 :
"assets": {
"web.assets_backend": [
"your_module/static/src/js/remove_message_delete.js",
],
},
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
2
maalisk. 25
|
414 | ||
|
1
jouluk. 24
|
1074 | ||
|
0
jouluk. 24
|
862 | ||
|
2
jouluk. 24
|
700 | ||
|
2
syysk. 24
|
682 |