Skip to Content
Menu
This question has been flagged
2 Replies
3170 Zobrazenia

hello 

Can any one check this code if it right?

My goal is to create ‘main menu’ and two ‘sub menu’ if I click on the sub menu’ it will show only my html text


thanks 

 justpaste.it/8u3wu 

Because I tried to paste it here but not working

I will write the code in a comment

Avatar
Zrušiť
Best Answer

Hi,

You can use the following code for connecting action to a menu.

<odoo>


    <record id="test_record" model="ir.actions.server">


        <field name="name">Name</field>


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


        <field name="model_id" ref="model_test"/>


        <field name="binding_model_id" ref="model_test"/>


        <field name="sequence">0</field>


        <field name="state">code</field>


        <field name="code">action = model.action_test()</field>


    </record>


    <record id="module_name.menu_id" model="ir.ui.menu">


        <field name="action" ref="module_name.test_record"/>


    </record>


</odoo>


define the action action_test() on the model model_test

Regards

Avatar
Zrušiť
Best Answer



haatglobal_ahmed
haatglobal_ahmed.haatglobal_ahmed



html Text to wrote for about company





haatglobal_ahmed
haatglobal_ahmed.haatglobal_ahmed



text for support





HAAT_Global
ir.actions.act_window
haatglobal_ahmed.haatglobal_ahmed
form


about company window




HAAT_Global
ir.actions.act_window
haatglobal_ahmed.haatglobal_ahmed
form



Support window








action="haatglobal_ahmed_about_about" />

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
júl 25
2519
2
sep 23
5692
1
apr 23
3004
1
aug 22
2820
3
mar 22
9330