Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4412 Weergaven

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.
Avatar
Annuleer
Auteur Beste antwoord

Hello Niyas.

Thanks

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mei 20
7027
1
okt. 23
1553
0
jan. 22
2289
1
mrt. 25
767
0
jun. 24
1271