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

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages