Skip to content

[18.0][MIG] stock_account_operating_unit#857

Open
ManfredNelvin-Dev wants to merge 21 commits into
OCA:18.0from
ManfredNelvin-Dev:18.0-mig-stock_account_operating_unit
Open

[18.0][MIG] stock_account_operating_unit#857
ManfredNelvin-Dev wants to merge 21 commits into
OCA:18.0from
ManfredNelvin-Dev:18.0-mig-stock_account_operating_unit

Conversation

@ManfredNelvin-Dev

Copy link
Copy Markdown

Migration of stock_account_operating_unit from Odoo 15.0 to 18.0.

@OCA-git-bot OCA-git-bot added series:18.0 mod:stock_account_operating_unit Module stock_account_operating_unit labels May 21, 2026
@ManfredNelvin-Dev ManfredNelvin-Dev force-pushed the 18.0-mig-stock_account_operating_unit branch from ce156fb to 9d0a40d Compare May 22, 2026 05:07

@AaronHForgeFlow AaronHForgeFlow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you put the pre-commit changes in a separate commit and then the commit for the migration? thanks.

Comment thread stock_account_operating_unit/tests/test_stock_account_operating_unit.py Outdated
@ManfredNelvin-Dev ManfredNelvin-Dev force-pushed the 18.0-mig-stock_account_operating_unit branch from 9d0a40d to d12bdbf Compare May 22, 2026 16:24

@AaronHForgeFlow AaronHForgeFlow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review LGTM

@BhaveshHeliconia BhaveshHeliconia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ManfredNelvin-Dev ManfredNelvin-Dev force-pushed the 18.0-mig-stock_account_operating_unit branch from d12bdbf to 3d12359 Compare May 27, 2026 12:06

@BhaveshHeliconia BhaveshHeliconia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ManfredNelvin-Dev the commit history looks incorrect. You squashed commits that should not have been squashed.
You only need to squash bot commits, and commits for the same language and the same author, as explained here: https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate

@ManfredNelvin-Dev ManfredNelvin-Dev force-pushed the 18.0-mig-stock_account_operating_unit branch from 3d12359 to 22fd8f7 Compare June 5, 2026 06:16
@ManfredNelvin-Dev

Copy link
Copy Markdown
Author

The commit history has been updated according to the review comments:

  • pre-commit fixes kept in a separate commit
  • migration changes kept in a separate commit

All checks are passing. Kindly review when convenient.

@BhaveshHeliconia

Copy link
Copy Markdown
Contributor

@ManfredNelvin-Dev the commit history looks incorrect. You squashed commits that should not have been squashed. You only need to squash bot commits, and commits for the same language and the same author, as explained here: https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate

@ManfredNelvin-Dev still not correct.

@ManfredNelvin-Dev

Copy link
Copy Markdown
Author

Hi @BhaveshHeliconia,

I reviewed the branch history and currently have:

  • Added stock_account OU module
  • [IMP] pre-commit fixes
  • [18.0][MIG] stock_account_operating_unit

Could you please point me to the specific commits that should be preserved and not squashed? I would like to restore the commit history according to the OCA guidelines, but I'm not able to identify which original commits were unintentionally squashed.

Thanks.

@BhaveshHeliconia

Copy link
Copy Markdown
Contributor

@ManfredNelvin-Dev you need to remove all commits from this branch and then replay the original commit history using:

git format-patch --keep-subject --stdout origin/18.0..origin/17.0 -- $module | git am -3 --keep

After that, cherry-pick your commit from this PR and push the branch again.

@ManfredNelvin-Dev ManfredNelvin-Dev force-pushed the 18.0-mig-stock_account_operating_unit branch from 22fd8f7 to 5aaf34a Compare June 23, 2026 08:25
@ManfredNelvin-Dev

Copy link
Copy Markdown
Author

Hi @BhaveshHeliconia,

I removed the squashed history and replayed the original stock_account_operating_unit commit history from 15.0 using git format-patch and git am, then reapplied the 18.0 migration changes on top.

The branch has been force-pushed. Could you please review it again when convenient?

Thanks.

@BhaveshHeliconia

Copy link
Copy Markdown
Contributor

@ManfredNelvin-Dev it's still not correct. In v17 there are 67 commits: https://github.com/OCA/operating-unit/pull/673/commits
In this PR, some of those commits are missing. You only need to preserve the proper commit history. There's no need to squash commits here—just keep the original history intact and add your migration commit on top.

@ManfredNelvin-Dev

Copy link
Copy Markdown
Author

Hi @BhaveshHeliconia,

I think there may be some confusion regarding the reference PR.

The PR you linked (#673) is for stock_operating_unit, which was migrated to 17.0 and preserved a 67-commit history.
However, this PR is for stock_account_operating_unit, and this module was not migrated to 17.0.

I verified the following locally:

git ls-tree -r origin/17.0 --name-only | grep "^stock_account_operating_unit/" returns no results, which indicates that stock_account_operating_unit is not present in the current 17.0 branch.

Based on your earlier feedback, I replayed the complete history available for stock_account_operating_unit from 15.0 using:

git format-patch --keep-subject --stdout origin/18.0..origin/15.0 -- stock_account_operating_unit | git am -3 --keep

and then applied the 18.0 migration changes on top.

If there is another branch or commit history for stock_account_operating_unit that should be preserved instead, could you please point me to it? I'm happy to replay the exact history once I know the expected source.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:stock_account_operating_unit Module stock_account_operating_unit series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.