跳至內容
選單
此問題已被標幟
2 回覆
3183 瀏覽次數

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
7月 25
2536
2
9月 23
5703
1
4月 23
3022
1
8月 22
2826
3
3月 22
9347