Hi,
I have a wizard that generates a file. I would like to force download of this file on user computer when wizard comes to near final view. Is “ir.export” done for this need? I don’t find examples
No.
You can display the file in a binary field on the last view or you can trigger a report action that will generate the file.
You should generate your file using a Report and use an ActionReport as last step of your Wizard.
There is an example on the PrintAeat Wizard of the Spanish Localization module