콘텐츠로 건너뛰기
메뉴
신고된 질문입니다
1 회신
1830 화면

On installation of a custom module I need to redirect it to the a custom tree view. Currently it is redirecting to discuss. what can I do for this?

Thanks in advance.


아바타
취소
베스트 답변

Hi,

You can achieve that using ir.actions.todo

Try to create records like below in your custom module.

<record id="action_client_base_menu" model="ir.actions.client">


    <field name="name">Your Client action name</field>


    <field name="tag">reload</field>


    <field name="params" eval="{'menu_id': ref('your_module_name.menuitem_id')}"/>


</record>




<record id="open_menu" model="ir.actions.todo">


  <field name="name">Open Menu</field>


  <field name="action_id" ref="action_client_base_menu"/>


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


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


</record>


Regards

아바타
취소
관련 게시물 답글 화면 활동
2
5월 25
1114
0
1월 25
1200
0
4월 25
1390
1
4월 25
1291
0
1월 25
494