Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2406 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 23
3588
1
เม.ย. 23
3926
1
ม.ค. 23
8337
0
ก.ค. 21
2398
ReferenceError: instance is not defined แก้ไขแล้ว
1
ธ.ค. 20
7931