Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1121 Visninger

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

Avatar
Kassér
Bedste svar

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!

Avatar
Kassér
Forfatter

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

Related Posts Besvarelser Visninger Aktivitet
3
sep. 25
3160
0
aug. 25
711
1
aug. 25
2903
2
jul. 25
8542
2
jul. 25
4929