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

[16.0][IMP] fieldservice: Set location parent to owner #1165

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

houzefa-abba
Copy link
Member

@houzefa-abba houzefa-abba commented Mar 5, 2024

Before this change, service location partners (created through
inheritance) were typed "fsm_location" but did not always have a parent.

When adding them within children of an existing partner, they of course
did have a parent, but not the other way around: they had no parents
when created, through inheritance, upon service location creation.

After this change, service location partners are by default children of
the service location owner partner.

This is only done through defaults but not as related fields, which
would break too much. Therefore, existing partners are not impacted by
this change; only new ones created when creating a service location.

See #1128.

This PR is a follow-up on #1164 where partner types got made more consistent.

@OCA-git-bot
Copy link
Contributor

Hi @max3903, @wolfhall,
some modules you are maintaining are being modified, check this out!

@houzefa-abba houzefa-abba force-pushed the 16.0-location-partner-parent branch 3 times, most recently from 52ef55c to b2dbc2c Compare April 8, 2024 07:38
Before this change, service location partners (created through
inheritance) were typed "fsm_location" but did not always have a parent.

When adding them within children of an existing partner, they of course
did have a parent, but not the other way around: they had no parents
when created, through inheritance, upon service location creation.

After this change, service location partners are by default children of
the service location owner partner.

This is only done through defaults but not as related fields, which
would break too much. Therefore, existing partners are not impacted by
this change; only new ones created when creating a service location.

See OCA#1128.
@houzefa-abba houzefa-abba force-pushed the 16.0-location-partner-parent branch from b2dbc2c to 8769c66 Compare April 8, 2024 15:26
@houzefa-abba
Copy link
Member Author

Just rebased since #1164 got merged

This PR is ready

@max3903 max3903 added this to the 16.0 milestone Apr 8, 2024
@max3903 max3903 self-assigned this Apr 8, 2024
@max3903
Copy link
Member

max3903 commented Apr 16, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-1165-by-max3903-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f09369e into OCA:16.0 Apr 16, 2024
5 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 2a1349d. 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.

3 participants