OCA / operating-unit

Manage Operating Units in Odoo
GNU Affero General Public License v3.0
72 stars 238 forks source link

[15.0][FIX] hr_payroll_account_operating_unit: assign the operating unit to the payslip journal items #650

Closed AaronHForgeFlow closed 5 months ago

AaronHForgeFlow commented 7 months ago

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

AaronHForgeFlow commented 5 months ago

Merging, as without this there is an error when creating payslips journal items.

/ocabot merge patch

OCA-git-bot commented 5 months ago

On my way to merge this fine PR! Prepared branch 15.0-ocabot-merge-pr-650-by-AaronHForgeFlow-bump-patch, awaiting test results.

OCA-git-bot commented 5 months ago

Congratulations, your PR was merged at ade92e96596bf25f518a5e33525f4c303cc59c80. Thanks a lot for contributing to OCA. ❤️