I want to hide Update Score option for this view.
I want to hide Publish Appraisal Option for this view.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to hide Update Score option for this view.
I want to hide Publish Appraisal Option for this view.
if u can't do it with python or xml please refer the code in github
its my module
if any access issue msg here
https://github.com/shalinwilson/car/blob/master/odoo_code/kims_cleanup/static/src/js/disable_export_group.js
odoo.define("kims_cleanup", function(require) {
"use strict";
var core = require("web.core");
var Sidebar = require("web.Sidebar");
var session = require("web.session");
var _t = core._t;
Sidebar.include({
_addItems: function (sectionCode, items) {
var _items = items;
if (!session.is_superuser && sectionCode === 'other' && items.length) {
_items = _.reject(_items, {label:_t("Export")});
_items = _.reject(_items, {label:_t("Archive")});
_items = _.reject(_items, {label:_t("Unarchive")});
_items = _.reject(_items, {label:_t("Delete")});
_items = _.reject(_items, {label:_t("Portal Access Management")});
_items = _.reject(_items, {label:_t("Send SMS")});
_items = _.reject(_items, {label:_t("Partner Mass Mailing")});
}
this._super(sectionCode, _items);
},
});
});
Thanks for your comment Shalin. I can't access github, It is showing error page.
i ll mail the module for you
The given link is not working.
I am using the same code for hiding a menu. It is hiding when I refresh the browser but it is not working when moving from one record to another.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Get an idea: https://learnopenerp.blogspot.com/2019/03/how-to-hide-export-option-from-more-menu-in-odoo.html