OCA / operating-unit

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

[15.0][FIX] account_operating_unit: split function for support expense operating unit #581

Closed Saran440 closed 1 year ago

Saran440 commented 1 year ago

Bug: Expense can't register payment when we config self-balance. it will error "Configuration error. The operating unit is mandatory for each line as the operating unit has been defined as self-balanced at company level."

it because this module get reconciled_moves from payment.reconciled_bill_ids + payment.reconciled_invoice_ids (payment from expense don't have bills)

This PR is split function for expense_operating_unit hook and change it to move on expense

AaronHForgeFlow commented 1 year ago

/ocabot merge patch

OCA-git-bot commented 1 year ago

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

OCA-git-bot commented 1 year ago

Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 15.0-ocabot-merge-pr-581-by-AaronHForgeFlow-bump-patch, awaiting test results.

OCA-git-bot commented 1 year ago

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