multi-company icon indicating copy to clipboard operation
multi-company copied to clipboard

[16.0][FIX] product_multi_company: don't change rules, but respect previous company assignments

Open yajo opened this issue 1 year ago • 8 comments

Remove lots of code thanks to https://github.com/OCA/multi-company/pull/760.

Also, call the new fill_company_ids hook, to respect company assignments done before the module installation.

Draft until:

  • [x] https://github.com/OCA/multi-company/pull/760

Instructions for functional tests: This refactor is internal and should not be noticed functionally. The module product_multi_company should work just as always. If so, then this is good.

@moduon MT-8873

yajo avatar Jan 29 '25 12:01 yajo

You're right, thanks for the review. Script added.

yajo avatar Feb 14 '25 10:02 yajo

This PR looks fantastic, let's merge it! Prepared branch 16.0-ocabot-merge-pr-762-by-pedrobaeza-bump-major, awaiting test results.

OCA-git-bot avatar Mar 03 '25 14:03 OCA-git-bot

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-762-by-pedrobaeza-bump-major.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

OCA-git-bot avatar Mar 03 '25 14:03 OCA-git-bot

@yajo please check the CI

pedrobaeza avatar Mar 03 '25 14:03 pedrobaeza

@yajo The tests for this module are broken. Please check https://github.com/OCA/multi-company/actions/runs/13632724910/job/38103974812#step:8:847. Are you available to fix this? Additionally, Pedro asks to forward port these fixes to v17.0 too.

PieterPaulussen avatar Mar 03 '25 14:03 PieterPaulussen

@yajo Just a kind reminder here. Migration to 18.0 is already in progress, and it is probably better if we can include this change.

LoisRForgeFlow avatar May 07 '25 07:05 LoisRForgeFlow

Thanks, fixed. Sorry I have a long delay in attending notifications.

yajo avatar May 08 '25 09:05 yajo

Please could you merge? This one is approved and tests are already fixed. Thanks!

yajo avatar May 09 '25 08:05 yajo

/ocabot merge major

pedrobaeza avatar May 09 '25 14:05 pedrobaeza

On my way to merge this fine PR! Prepared branch 16.0-ocabot-merge-pr-762-by-pedrobaeza-bump-major, awaiting test results.

OCA-git-bot avatar May 09 '25 14:05 OCA-git-bot

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

OCA-git-bot avatar May 09 '25 15:05 OCA-git-bot

@yajo I have notified in the v18 migration, I guess it is still needed the fwport to v17, right?

LoisRForgeFlow avatar May 12 '25 07:05 LoisRForgeFlow

We're skipping v17. I'm sorry about that 😅

But anybody can do the fwport if needed.

yajo avatar May 12 '25 11:05 yajo