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

i have some user in advisor group accounting

but i want to prevent them to show salaries journal , its entries , items and from finantial report

ex

this user added in tab in journal notebook

if he go to balance sheet

he can show total salaries but can't click on arrow and show details



i tried javascript but i can't do it



odoo.define('module.nt_hr_payroll_community', function (require) {
"use strict";

var menu = document.getElementsByClassName('o_dropdown_menu dropdown-menu o_filter_menu show')
document.getElementsByClassName('o_dropdown_menu dropdown-menu o_filter_menu show')[0].addEventListener("onClick", hideJournal);

function hideJournal(){
if (menu){
// var ajax = require('web.ajax');
var
nodes = menu[0].childNodes
var v = ''
for
(i of nodes){
if(i.tagName == 'A'){
if (i.textContent){
journal = i.textContent.replace(/\s/g, '')
if(journal == 'Bank'){
}
}
}
}
}

}

});




i tried this code but  dosn't work 


아바타
취소
베스트 답변

With Journal Groups!

Book what you want to hide in specific journals and use Journal Groups which is exactly for that:



아바타
취소
작성자

thank you for answer but this not i want
i changed quistion and description

관련 게시물 답글 화면 활동
0
5월 23
3114
1
4월 23
3397
1
1월 23
7922
0
7월 21
2003
1
12월 20
7459