Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3175 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Melhor resposta



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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jul. 25
2520
2
set. 23
5692
1
abr. 23
3004
1
ago. 22
2820
3
mar. 22
9332