تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1090 أدوات العرض

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
سبتمبر 25
3099
0
أغسطس 25
649
1
أغسطس 25
2782
2
يوليو 25
8463
2
يوليو 25
4880