Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] sale_coupon_criteria_multi_product: Migration to 14.0 #68

Merged
merged 6 commits into from
Jun 24, 2022

Conversation

alvaro-domatix
Copy link

No description provided.


sale_coupon_criteria = fields.Selection(
coupon_criteria = fields.Selection(
Copy link
Member

Choose a reason for hiding this comment

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

Ok with the field renames (you can also do it with the filenames using git mv for better diff). Anyway, a migration script should be made. An example:

An example: https://github.com/OCA/account-financial-tools/blob/13.0/account_move_line_sale_info/migrations/13.0.1.0.0/pre-migration.py

openupgrade.rename_fields reference: https://github.com/OCA/openupgradelib/blob/master/openupgradelib/openupgrade.py#L585-L611

@alvaro-domatix
Copy link
Author

Done!

Copy link
Contributor

@francesco-ooops francesco-ooops left a comment

Choose a reason for hiding this comment

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

functionally LGTM

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Thanks @alvaro-domatix !

@pedrobaeza
Copy link
Member

/ocabot migration sale_coupon_criteria_multi_product
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 14.0 milestone Jun 24, 2022
@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 14.0-ocabot-merge-pr-68-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot mentioned this pull request Jun 24, 2022
5 tasks
@OCA-git-bot OCA-git-bot merged commit 00ba249 into OCA:14.0 Jun 24, 2022
@OCA-git-bot
Copy link
Contributor

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

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

Successfully merging this pull request may close these issues.

None yet

6 participants