Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1109 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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!

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 25
3139
0
thg 8 25
690
1
thg 8 25
2862
2
thg 7 25
8518
2
thg 7 25
4918