El 08/07/17 a les 10:19, Mark Shane Hayden ha escrit:
On Sunday, 25 June 2017 02:10:07 UTC-6, Cédric Krier wrote:
On 2017-06-25 00:11, Mark Shane Hayden wrote:
> It doesn't seem that the company value is being set in the
context as
> expected otherwise product.list_price would not return None?
Please check it.
There is no company set in the context within my flask tryton app. It
isn't an issue with 4.2 but in the dev version on 4.4 with multivalues
it seems critically important. however I do not know how to set the
company in my flask tryton app. What is the proper way to do that?
You can use the default_context[1] decorator to set the context of all
the transactions, or pass a different context (or callable) to each
transaction [2] using the context parameter.
Hope it helps.
[1] http://hg.b2ck.com/flask-tryton/file/7ea1706ad421/README#l19
[2] http://hg.b2ck.com/flask-tryton/file/7ea1706ad421/flask_tryton.py#l69
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk
--
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/e569a1e1-9a59-76f6-cc96-624ca675917b%40koolpi.com.