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

Hi, 


I want to open the task form in a popup instead of the default form view.

What is the best way to do this? Should work from tree and kanban possibly.


I tried doing it with js, but it seems to be a lot of work recreating all the fields and logic.


Thank you

頭像
捨棄
最佳答案

use "target new" like this:

<record id="record_id" model="ir.actions.act_window">
        <field name="name">Record Name</field>
        <field name="res_model">model.name</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>    
</record>

or 

return <act_window id="action_id"

name="Name of View"

res_model="model.name"

view_mode="form"

target="new"


Regards!

頭像
捨棄
作者

Hi Jason, will this open the task in pop-up if clicked on task record in tree view?

相關帖文 回覆 瀏覽次數 活動
3
9月 25
3070
0
8月 25
628
1
8月 25
2763
2
7月 25
8458
2
7月 25
4875