コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
1308 ビュー

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 

アバター
破棄
関連投稿 返信 ビュー 活動
0
9月 25
3
3
9月 25
258
1
8月 25
198
1
8月 25
272
0
8月 25
170