تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3184 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 25
2536
2
سبتمبر 23
5703
1
أبريل 23
3022
1
أغسطس 22
2826
3
مارس 22
9347