Wrong start balance value in general ledger queries when using to date filter
After commit 984875a099e1 the Start balance is not computed correctly when using date filters in general ledger accounts.
Debugging the query I notice the method "get_dates" does not take into account that "from_date" can be empty so the method "get_account" sets in context from_date=None, to_date=None (this is all the moves). IMHO in this case it should get as end_date the "start_date - 1day of first period of defined fiscal year".
Despite the fiscal year is in the context as it is required, if no dates defined in context (method "get_dates") the balance computed is at the end of the fiscal year; but we are expecting the balance before the fiscal year.