I am currently trying to modify the income statement wizard to
support also a start and end date instead of periods. However I
stumbled upon the Tryton context black magic:
context = {
'periods': periods,
'posted': data['form']['posted'],
'company': data['form']['company']
}
with Transaction().set_context(context):
accounts = account_obj.browse(ids)
How does Tryton respect this context and how would I specify a start
and end date?
Best regards
Robin Baumgartner
Member of Delivery & Production division
Open Work Place AG · Habsburgerstrasse 23 · CH-6003 Luzern
T +41 41 226 50 93
[email protected] · www.openworkplace.ch
--
[email protected] mailing list