콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
3208 화면

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.

아바타
취소
베스트 답변

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

아바타
취소
베스트 답변

Hi,

Does anyone have a solution for this?

Am experiencing the same issue in Odoo 13

Thanks in Advance

아바타
취소
관련 게시물 답글 화면 활동
1
8월 23
4836
1
3월 18
6852
2
7월 24
14090
2
12월 23
12680
3
7월 22
23026