Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3174 Представления

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

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Лучший ответ



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" />

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
июл. 25
2520
2
сент. 23
5692
1
апр. 23
3004
1
авг. 22
2820
3
мар. 22
9332