コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2747 ビュー

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!


アバター
破棄
最善の回答

You will have to go with javascript.

アバター
破棄
関連投稿 返信 ビュー 活動
2
3月 23
2148
1
6月 22
3167
0
6月 21
4314
0
5月 23
1830
1
9月 21
3335