Closed AaronHForgeFlow closed 5 months ago
Merging, as without this there is an error when creating payslips journal items.
/ocabot merge patch
On my way to merge this fine PR! Prepared branch 15.0-ocabot-merge-pr-650-by-AaronHForgeFlow-bump-patch, awaiting test results.
Congratulations, your PR was merged at ade92e96596bf25f518a5e33525f4c303cc59c80. Thanks a lot for contributing to OCA. ❤️
Assign the operating unit to the payslip journal items. Doing it in the write method is not sufficient when the journal item is created before. And the constraint here is raised:
https://github.com/OCA/operating-unit/blob/15.0/account_operating_unit/models/account_move.py#L205
This depends on https://github.com/OCA/payroll/pull/146
cc @ForgeFlow