跳至内容
菜单
此问题已终结
1 回复
2755 查看

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)

形象
丢弃
Graag contact opnemen via pieter@briqwise.com Vriendelijke groet, Alexander
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
0
3月 15
2610
2
4月 24
7350
6
10月 15
5499
3
3月 15
6497
2
3月 15
20968