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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
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
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Agu 23
|
4684 | ||
|
1
Mar 18
|
6720 | ||
|
2
Jul 24
|
13857 | ||
|
2
Des 23
|
12482 | ||
|
3
Jul 22
|
22768 |