Hello,
I am working on Odoo online 17.2e saas and I want to hide the 'Find missing transactions' menu item in the actions button on this screen. Is this possible?
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
I am working on Odoo online 17.2e saas and I want to hide the 'Find missing transactions' menu item in the actions button on this screen. Is this possible?
Thanks.
Try to remove this contextual action if it not works gives group as admin or anything
def fields_view_get(self, view_id=None, view_type='form', toolbar=False,
submenu=False):
res = super().fields_view_get(view_id=view_id, view_type=view_type,
toolbar=toolbar, submenu=submenu)
if toolbar:
for action in res['toolbar'].get('action'):
if action.get('xml_id'):
if action['xml_id'] == 'your xml of action' and self._context.get(
'default_type') == 'entry':
res['toolbar']['action'].remove(action)
return res
Try this
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 9 25
|
4 | ||
|
3
thg 9 25
|
260 | ||
|
1
thg 8 25
|
201 | ||
|
1
thg 8 25
|
273 | ||
|
0
thg 8 25
|
170 |