Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2757 Zobrazení

As you may know, invisible elements are still available in the DOM so can the can easily be restored.

https://www.odoo.com/nl_NL/forum/help-1/odoo-security-issue-for-invisible-fields-86106

What about removing:
this.$("button.o_invisible_modifier").remove();

Still not perfect but better?
What do you think?

Thanks,


Alexander

Odoo13 (all versions)

Avatar
Zrušit
Graag contact opnemen via pieter@briqwise.com Vriendelijke groet, Alexander
Nejlepší odpověď

Hi,

We can try this method like,

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()
            })
    },
    })
    })


Hope it helps

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 15
2615
2
dub 24
7353
6
říj 15
5506
3
bře 15
6500
2
bře 15
20970