TPH
2018-03-21 14:17:01 UTC
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
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
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/b6a1b921-f1df-441b-8f84-32e8d18f38a7%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/b6a1b921-f1df-441b-8f84-32e8d18f38a7%40googlegroups.com.