account-closing
account-closing copied to clipboard
[14.0] [FIX] account_fiscal_year_closing - create/write
When creating new fiscal year closing with an account mapping (with destination account) in moves configuration, an issue is raised at save (Issue https://github.com/OCA/account-closing/issues/280).
But when coming from a template (selecting template on screen), Mapping data are used as an Array instead instead of simple id (due to many inside another many).
The current code manage only case from template.
This PR take into account this particularity (and mangage other way), check the type before taking the id of the array.
Bug also on v16.0 #248
I confirm the bug and fix. Please merge this.
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.
Would you please merge this?