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

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 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ย. 25
288
1
ส.ค. 25
226
1
ส.ค. 25
303
0
ส.ค. 25
179
1
ส.ค. 25
229