Skip to Content
Menú
This question has been flagged
2 Respostes
2898 Vistes

In Odoo xml "invisible" attributes/class used to hide menu or button or records from particular users. But user can see confidential records by removing o_inivisible_modifier class through inspect element or from browser developer tools.

Avatar
Descartar
Best Answer

You can try this code :


odoo.define('module_name.invisible', function (require) {
    "use strict";
    var FormRenderer = require('web.FormRenderer');
    FormRenderer.include({
        start: function () {
            return this._super.apply(this, arguments).then(() =>{
                this.$el.find('.o_invisible_modifier').remove()
// if the remove() function didn't work you can use hide()
            })
    },
    })
    })


Hope it helps

Avatar
Descartar
Best Answer

Hi,

Does anyone have a solution for this?

Am experiencing the same issue in Odoo 13

Thanks in Advance

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’ag. 23
4622
1
de març 18
6672
2
de jul. 24
13766
2
de des. 23
12324
3
de jul. 22
22610