Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits: 350f5cb0 by Cédric Krier at 2023-04-08T14:31:25+02:00 Use dates from context to compute account type amount The general ledger dates are not good because they are defined to compute a start and end amount. Closes #12162 - - - - - 1 changed file: - modules/account/account.py Changes: ===================================== modules/account/account.py ===================================== @@ -327,8 +327,8 @@ period_ids = list( set(end_period_ids).difference(set(start_period_ids))) elif context.get('from_date') or context.get('to_date'): - from_date, _ = GeneralLedger.get_dates('start_%s' % name) - _, to_date = GeneralLedger.get_dates('end_%s' % name) + from_date = context.get('from_date') + to_date = context.get('to_date') with Transaction().set_context( periods=period_ids, from_date=from_date, to_date=to_date): View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/350f5cb0240f9e33d3f74f7c6836502856533da1 -- View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/350f5cb0240f9e33d3f74f7c6836502856533da1 You're receiving this email because of your account on foss.heptapod.net.