跳至內容
選單
此問題已被標幟
2 回覆
4437 瀏覽次數

See My code    

<record id="external_link" model="ir.actions.act_url">

        <field name="name">Other App</field>

        <field name="type">ir.actions.act_url</field>

        <field name="target">self</field>

        <field name="url">http://myIP/login/{uid}</field>

    </record>


<menuitem action = "external_link" id="my_menu_root"

            name="Application"

            web_icon="my_module,static/description/icon.png"

            active="True"

            sequence="9" groups="my_module.group_manager,my_module.group_user"/>

Need Help.
Thank for your response.
頭像
捨棄
作者 最佳答案

Hello Niyas.

Thanks

頭像
捨棄
最佳答案

Hi,

You can directly call a python function from the menu item and from there you can try to return this. In the python you can get the current user from self.env.user.id .

To call python function from menu item, you can use server action.

See this: How To Call Python Function From Menu Item in Odoo

Thanks

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
5月 20
7073
1
10月 23
1576
0
1月 22
2330
1
3月 25
785
0
6月 24
1318