在开发的时候发送外部连接的时候会加上一些菜单信息,系统不一样菜单 不一样,这个时候就要根据配置读取ID,下面方法可实现:

action_xmlid = 'helpdesk.helpdesk_ticket_action_main_tree'

action_url = '/web?#menu_id=%s&action=%s&id=%s&model=helpdesk.ticket&view_type=form' % (

self.env.ref('helpdesk.menu_helpdesk_root').id,

self.env.ref(action_xmlid).id,

str(res.id)

)

查看相应模块的菜单,和相应模块的外部标识。

odoo 读取系统菜单ID。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2021-12-07
  • 2021-06-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-01-11
  • 2021-08-31
  • 2021-12-23
相关资源
相似解决方案