Cancelling a movement that is used to group lines results in an error.
The scenario is the following:
- Take two receivable lines and group them
- Go to the grouping movement
- Cancel the movement.
It will result in an error about the Effective Date of a Move that can not be NULL.
The origin is the fact that when we cancel, we duplicate the move and thus the 'reconciliations_delegated' field which will in turn duplicate the reconciliation and thus some lines which as we set the date to None by default and because the move line's date is a function field with a setter, the related move date is set to None which results in the error.
I am writing a patch with a test for this issue.