Odoo Help

Welcome!

This community 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.

1

[v9] How to close a wizard after print pdf?

By
Anabela Damas
on 6/16/16, 11:08 AM 286 views

Hi, 

I have  a wizard with a button  where return this: 

return self.env['report'].get_action(record_to_print, 'account.report_invoice')

But I wanted to close the wizard after print the report. 

When I don't have to return a report is easy , I do this: 

return {'type': 'ir.actions.act_window_close'}

How do I print my report and after close the wizard ? 


Thanks


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/16/16, 11:08 AM
Seen: 286 times
Last updated: 7/12/16, 9:21 AM