How to get the form created by Wizard? Proteus Tryton 3.8
26 views
Skip to first unread message
TPH
unread,
Mar 21, 2018, 10:20:08 AM3/21/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tryton
Hello
I try to use the Wizards stock.products_by_locations and access the results.
I do not searching for the wizard.form but for the form created by the wizard.
For example: With Tryton client I can use Products by Locations to generate a form with all products with quantity and costs.
I am not sure but I think this code creates also such a form, but how can I access after creation?
Location = Model.get('stock.location')
locations = Location.find()
for l in locations:
wizard = Wizard('stock.products_by_locations', [l])
wizard.execute('open')
# show results
Thanks
Cédric Krier
unread,
Mar 21, 2018, 1:10:07 PM3/21/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tryton
Hi,
The wizard was only there (removed in 4.2) to setup the context like
locations with the ids of the locations.
So you can just browse the product records with the right context to get
the values.