Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1139 มุมมอง

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?

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ย. 25
3202
0
ส.ค. 25
764
1
ส.ค. 25
2974
2
ก.ค. 25
8604
2
ก.ค. 25
5001