-
Notifications
You must be signed in to change notification settings - Fork 26
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
Incorrect computation of cooperator_type ? #345
Comments
Until we find a foolproof way of doing this (needs to check the analysts), fetching the share created last could be a good heuristic. |
Hi @robinkeunen and @victor-champonnois ! We're migrating right now a quite big cooperative (6k members) and we face this specific issue since it is a multi stakeholder coopderative and the same member could pertain to different membership "categories" at the same time. Translated to EMC... ehm, sorry... Cooperator language, it means that a single member can subscribe multiple share types at the same time. This leads to the issue @victor-champonnois is pointing out. Actually, the whole Cooperators "list" should be re-designed to cover this use case IMHO. What do you think? |
Hi @enricostano I agree we could do better with the cooperator list. One way of doing so is to have something similar to what we did in investor-wallet-platform to allow multiple memberships. We could also get inspiration from oca/vertical-association. In both case, the modules add a "membership" model separate from the partner. |
Audit cooperator_typecooperatorThe field is defined on vertical-cooperative/cooperator/models/partner.py Lines 159 to 164 in 35443a5
vertical-cooperative/cooperator/models/partner.py Lines 102 to 109 in 35443a5
Issues:
How should we handle multiple share types ?
cooperator_websitePrevents creating several shares of different types for a partner through the online form. beesdoo_easy_my_coopWill be split into
The field definition is overridden in this way cooperator_type = fields.Selection(
[
("share_a", "Share A"),
("share_b", "Share B"),
("share_c", "Share C"),
],
store=True,
compute=None,
) From the share type, also computes
Issues:
Also see #318 |
Décision : => ajouter un champs séquence / hierarchie (pas de ir.sequence) sur les types de part |
@robinkeunen would be great to have a small chat about this changes, would you mind a call next week? Thanks! |
Hey @enricostano, sure. I'm available monday-tuesday-wednesday mornings. |
@enricostano I need to have this conversation soon, I'll be working on this this week or the next. |
@robinkeunen sorry, I missed your comment. Would you mind a call talking about this? Thanks! |
closed in favor of OCA/cooperative#18 |
In
cooperator
, the fieldcooperator_type
is computed in the following manner:This will set
cooperator_type
to the firstshare_type
in theshare_line
table. In the case when a cooperator has several share types, the first one will arbitrarily be chosen.It is technically possible for a cooperator to have several share types (no constraints exists), so this could be an issue.
The text was updated successfully, but these errors were encountered: