A wizard can not change its own execution context.
But you could have a first wizard that ask a company and then launch a second wizard with the selected company in the context using a StateAction and a do_ method.
Thank you for your quick response, but it doesn’t seem to be possible. I’ve tried it, and it’s the client who launches the action with the current context in this
I have tried the following methods. Which one do you think is correct?
From what I have seen in the code, context is not taken into account.
However, I have seen that pyson_context is used for case ‘ir.action.act_window’:.
Okay, thank you very much, that will be a good feature.
Using wizard to create record is anyway not the Tryton way.*
This is a pre-assisted process that loads data from an external source, based on information from a record that contains information by company. I don’t see any other way.
Yes, I have analyzed and tested this option, but it does not fit my needs.
If I am not mistaken, this can only be triggered in an m2o, m2m… with user interaction.