Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
3153 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

Hi,

Does anyone have a solution for this?

Am experiencing the same issue in Odoo 13

Thanks in Advance

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 23
4800
1
mar 18
6819
2
lug 24
14042
2
dic 23
12632
3
lug 22
22965