Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1326 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź


Try to remove this contextual action if it not works gives group as admin or anything

Awatar
Odrzuć
Najlepsza odpowiedź
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 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 25
5
4
wrz 25
1171
3
wrz 25
302
1
sie 25
230
1
sie 25
306