Skip to content

[MIG] [18.0] membership delegated partner line#214

Open
gfcapalbo wants to merge 3 commits intoOCA:18.0from
gfcapalbo:18.0-MIG-membership_delegated_partner_line
Open

[MIG] [18.0] membership delegated partner line#214
gfcapalbo wants to merge 3 commits intoOCA:18.0from
gfcapalbo:18.0-MIG-membership_delegated_partner_line

Conversation

@gfcapalbo
Copy link

@gfcapalbo gfcapalbo commented Oct 30, 2025

Migration from v14 to v18.

module requires uninstalling membership_delegated_partner and to run a sql script before that to be installed.

we have no mechanism for "blocks" or "incompatible_with" in manifest for now
I would like to add init_hook blocking installation if membership_delegated_partner. the error will return the basic instructions to follow to correctly install the module.
This small improvement, unfortunately makes test fail, asking for OCA-way to bypass small problem.

Delivering the Current MR has same functionality as old v14.
If we want the pre_init_hook (ready to go on another branch) i need to understand how could this be compatible with OCA CI.

@gfcapalbo gfcapalbo changed the title 18.0 mig membership delegated partner line [WIP] 18.0 mig membership delegated partner line Oct 30, 2025
@gfcapalbo gfcapalbo force-pushed the 18.0-MIG-membership_delegated_partner_line branch 16 times, most recently from 5509399 to f8eb2a1 Compare November 5, 2025 14:14
@gfcapalbo gfcapalbo changed the title [WIP] 18.0 mig membership delegated partner line 18.0 mig membership delegated partner line Nov 5, 2025
@gfcapalbo gfcapalbo changed the title 18.0 mig membership delegated partner line [MIG] [18.0] membership delegated partner line Nov 5, 2025
@gfcapalbo gfcapalbo force-pushed the 18.0-MIG-membership_delegated_partner_line branch from f8eb2a1 to f03490a Compare November 5, 2025 14:37
)
def _compute_partner(self):
"""Change associated membership lines if delegated member is changed.
NOTE: This is required due to the weird way that account.move in parent
Copy link
Member

Choose a reason for hiding this comment

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

@gfcapalbo Perhaps this was already solved in v18 and this override is not needed anymore?

Copy link
Author

@gfcapalbo gfcapalbo Nov 7, 2025

Choose a reason for hiding this comment

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

Yes. but the two modules are incompatible. membership_delegated_partner_line does not depend on membership_delegated_partner, in fact they are incompatible and should not be installed together.

So repeating the _compute_partner here as is done in https://github.com/OCA/vertical-association/blob/18.0/membership_delegated_partner/models/membership_line.py#L17 is necessary.

@gfcapalbo gfcapalbo force-pushed the 18.0-MIG-membership_delegated_partner_line branch 2 times, most recently from 1c8c361 to 602a373 Compare November 7, 2025 11:48
@gfcapalbo gfcapalbo force-pushed the 18.0-MIG-membership_delegated_partner_line branch from 602a373 to 362ba20 Compare February 5, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants