콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

Hi everyone!

Instead of opening a view form when clicking on a tree view line, is it possible to open an action window (an editable popup) so the user can edit a few field without adding an action in action button or creating a button in tree view line?


Thank you for your help.

아바타
취소
베스트 답변

Hi

We can define the tree view as follow:

<tree create="false" delete="false" action="action_open_wizard" type="object">

Then create a view and mention the id of thet view in the view_id of ir.actions.act_window

Then we create another record in ir.actions.act_window with id action_open_wizard.

Then define the action_open_wizard like:

<record id="action_open_wizard" model="ir.actions.act_window">

 <field name="name"><Name></field>

<field name="res_model"><model_name></field>

<field name="view_mode"><view_mode(tree, for)></field>

<field name="view_id" ref=<view that need to be opened>/></record>

Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
1
7월 23
3074
2
3월 23
15002
1
5월 22
3271
1
3월 15
4936
1
5월 24
2574