How can I retrieve the search domain in a wizard?

Asked by Numérigraphe

I wrote a wizard related to sale orders.
First the user searches the orders, then runs the wizard on the search results.
In the wizard code, how can I get the search domain that was used?
Thanks if you can answer.
Lionel

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#1

Hello Lionel,

Wizard will operate on IDS and context of current screen.

You cannot identify the criteria of search. but the context may help you.

If you tell me your aim, I may help you to server the purpose .

Thanks.

Revision history for this message
Numérigraphe (numerigraphe) said :
#2

Here is the full scenario is:
- search orders
- run a wizard to create records in another object
- print a report based on these new records
On the report, I'd like to print which were the search criteria used. I thought I might find them in the context but I couldn't.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#3

No Lionel,

You cannot get the search criteria on wizard.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Numérigraphe for more information if necessary.

To post a message you must log in.