aged balance has problem with months
as indicated in https://discuss.tryton.org/t/how-to-print-balance-by-party-by-account/1976/5, there appears to be a problem with dates at least when using months.
The following applied to get_unit_factor() seems to easily fix the issue:
@@ -2194,9 +2194,9 @@ class AgedBalance(ModelSQL, ModelView):
context = Transaction().context
unit = context.get('unit', 'day')
if unit == 'month':
- return datetime.timedelta(days=30)
+ return relativedelta(months=1)
elif unit == 'day':
- return datetime.timedelta(days=1)
+ return relativedelta(days=1)