Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2671 Vizualizări

Hello everybody!

I'm trying to listen the save button in the product template form to display a popup. But I don't know how do it.

I tried using the method create and write. But when I return this:

return {
'name':name,
'view_mode': 'form',
'view_id': False,
'res_model': 'message.wizard',
'res_id': partial_id,
'type': 'ir.actions.act_window',
'nodestroy': True,
'target': 'new',
'domain': '[]',
}


It doesn't display nothing.

Also, I saw that this is normal. Because these methods return other types of values.

Can I replace the save button to save the data and display a popup or is it impossible?

I have seen that JavaScript can be used. Maybe to do it I should use this or with a XML template and python I could do it.


Greetings and thank you very much!


Imagine profil
Abandonează
Cel mai bun răspuns

You will have to go with javascript.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mar. 23
2112
1
iun. 22
3119
0
iun. 21
4249
0
mai 23
1784
1
sept. 21
3293