Misconfigured adjustment period can break general ledger
If you have
- fiscalyear from 2021-01-01 to 2021-12-31
- monthly accounting periods
- an adjustment period with start date 2021-01-01 and end date 2021-12-31
and you select the adjustment period as end period on the general ledger account form view the method get_periods_ids() from 'account.general_ledger.account' does not return proper period ids for computation of the account values.
I think that it was not intended to allow such configurations for the adjustment period. So maybe we need to add some constraints to prevent misconfiguration.