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

[WIP] Show associate members in website member listings #56

Open
wants to merge 5 commits into
base: 14.0
Choose a base branch
from

Conversation

bguillot
Copy link

In order to fix the membership on OCA website we can merge this module made by @gdgellatly

As discussed here : OCA/vertical-association#122 another solution may be better but it's not done yet.

@gdgellatly
Copy link
Contributor

@bguillot

We have this failure in pre-commit.

[INFO] Initializing environment for https://gitlab.com/PyCQA/flake8. I am pretty sure we just need to change gitlab to github in the pre-commit config.

Copy link
Contributor

@gdgellatly gdgellatly left a comment

Choose a reason for hiding this comment

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

Fine by me, obviously I wrote it, but temporary workaround until we can get invoicing to individual members by line rather than invoice.

"member_lines.date_from",
"associate_member",
)
def _compute_membership_state(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

@sbidoul When we deploy it might pay to run this function in a shell session.

Copy link
Contributor

@gdgellatly gdgellatly left a comment

Choose a reason for hiding this comment

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

Missed a sudo here causing access errors.

# get google maps localization of partners
google_map_partner_ids = []
if request.website.is_view_active("website_membership.opt_index_google_map"):
google_map_partner_ids = Partner.search(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
google_map_partner_ids = Partner.search(
google_map_partner_ids = Partner.sudo().search(

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