Odoo Help


Need a example of ir.actions.server executing multiple actions one after the other

Marcin Pieczyński
on 4/5/17, 6:52 AM 814 views

Hi everyone.

In a wizzard view I have a button returning pdf report in a 'ir.action.act_url'.  It works fine. Problem is that after the pdf appeared I would like the wizzard window to be closed automatically. To do this I can return close_window dict.

Separately this two 'return' work fine.

I would like to execute two actions, one after another. I found that this is possible using ir.action.server with multi attribute.

Unfortunately I couldn't find even one example. 

close_window = {'type': 'ir.actions.act_window_close'}

final_report = {
'type': 'ir.actions.act_url',
'url': '/web/binary/saveas?model=ir.attachment&field=datas&filename_field=name&id=' + str(file.id),
'target': 'self',

return final_report


Hilar AK

--Hilar AK--
--Hilar AK--



Hilar AK
On 4/7/17, 9:05 AM

Hi, try to use state="multi" and give action_id = 'action_id' where next action to be executed

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/5/17, 6:52 AM
Seen: 814 times
Last updated: 4/7/17, 9:05 AM