OCA / account-financial-tools

Odoo Accountant Financial Tools and Utils
GNU Affero General Public License v3.0
300 stars 741 forks source link

[16.0][FIX] account_spread_cost_revenue, invalid reconcile case invoice_line_ids > 1 #1828

Closed kittiu closed 3 months ago

kittiu commented 4 months ago

For case 1 to 1, i.e., 1 Invoice and 1 spread -> OK

For case multiple, when 1 spread linked to 2 posted invoice lines

  1. The invoice_line_id should show the latest active one.
  2. The _reconcile_spread_moves() should allow to reconcile with all linked invoice_line_ids.
kittiu commented 3 months ago

@Saran440 @astirpe @bosd can you help review this small fix. Thanks!

kittiu commented 3 months ago

/ocabot merge patch

OCA-git-bot commented 3 months ago

Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 16.0-ocabot-merge-pr-1828-by-kittiu-bump-patch, awaiting test results.

OCA-git-bot commented 3 months 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 3 months ago

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