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

[17.0][MIG] contract_membership_delegated_partner: Migration to 17.0 #186

Merged

Conversation

victoralmau
Copy link
Member

@victoralmau victoralmau commented Nov 13, 2024

Migration to 17.0

Locked by:

@Tecnativa TT51523

@chienandalu
Copy link
Member

chienandalu commented Nov 14, 2024

/ocabot rebase

chienandalu and others added 13 commits November 15, 2024 08:05
- Adaptation to the new OCA contract module paradigm.
Update "development_status": "Production/Stable"
[UPD] Update contract_membership_delegated_partner.pot

[BOT] post-merge updates
…elds are always truthy

This is an additional sanity check to make sure that fields that are
expected to be available are actually available.

The situation here is a little tricky. Especially as pertains date_from
and date_to; these fields are `required=True` nowhere. Not on the
product, not on the membership invoice, and not on the membership line.
However, they _are_ set as required in the product and membership line
views. If these values are ever empty, it's a sure sign that something
went wrong somewhere, because the user should not be able to reach such
a state via the UI.

One sure way to reach that state was via the demo data, however, which
had no start and end dates. This is now fixed.

The situation for the variable period fields is similar. These fields
should never be empty when the membership type is variable, and it's not
typically possible to empty these values via the UI. For convenience's
sake, I simply set them to required an sich, with a default value.

Signed-off-by: Carmen Bianca BAKKER <[email protected]>

[BOT] post-merge updates
@victoralmau victoralmau force-pushed the 17.0-mig-contract_membership_delegated_partner branch from 304b1cb to 1e36f06 Compare November 15, 2024 07:07
@pedrobaeza
Copy link
Member

/ocabot migration contract_membership_delegated_partner

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Nov 15, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Nov 15, 2024
8 tasks
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.

Code and functional review 👍

@chienandalu
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-186-by-chienandalu-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ba6c325 into OCA:17.0 Nov 15, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 17.0-mig-contract_membership_delegated_partner branch November 15, 2024 07:46
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.

8 participants