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

[13.0][MIG] partner_survey: Migration to 13.0 #33

Merged
merged 17 commits into from
Oct 26, 2020

Conversation

skeller1
Copy link

@skeller1 skeller1 commented May 5, 2020

partner_survey

Idea

Odoo 13.0 introduced the certification count stats button on partner form. This is already implemented as a survey relation with filter on quiz option=true.
Used the same implementation for survey counting.
If the survey count is zero or equal to the certification count the survey button is hidden.

  • added simple tests
  • Refactor

@skeller1 skeller1 force-pushed the 13.0-mig-partner_survey branch from 24d33a8 to c7f5650 Compare May 5, 2020 18:59
@bruno-zanotti
Copy link

@skeller1
I've tested and everything works properly.
About this "Understand why attrs invisible with ('survey_count', '=','certification_count') domain is not working"
It is not working because the third value of the triple is just a value, so you are asking if the field 'survey_count' conteins the string "certification_count".
I think you are solving this problem in a good way.

@bruno-zanotti
Copy link

Maybe you should announce that you are working on this in the issue #31

@rousseldenis rousseldenis added this to the 13.0 milestone Jul 28, 2020
@OCA-git-bot OCA-git-bot mentioned this pull request Jul 28, 2020
3 tasks
@skeller1 skeller1 force-pushed the 13.0-mig-partner_survey branch from c7f5650 to 94492d6 Compare August 25, 2020 20:17
@skeller1
Copy link
Author

@skeller1
I've tested and everything works properly.
About this "Understand why attrs invisible with ('survey_count', '=','certification_count') domain is not working"
It is not working because the third value of the triple is just a value, so you are asking if the field 'survey_count' conteins the string "certification_count".
I think you are solving this problem in a good way.

Yeah, learned it the hard way:
model field on the left side, static value on the right side for proper condition definition in xml.
So this is not possible: ('survey_count', '=','certification_count')
Thank you for clarifying

@skeller1 skeller1 marked this pull request as ready for review August 25, 2020 20:31
@skeller1 skeller1 force-pushed the 13.0-mig-partner_survey branch 5 times, most recently from f029dd9 to 3369390 Compare August 25, 2020 22:28
@skeller1 skeller1 force-pushed the 13.0-mig-partner_survey branch from 3369390 to 0a2aa63 Compare August 25, 2020 22:29
@bruno-zanotti
Copy link

Hi @skeller1, thanks for your job!
Is there something missing in the pr or could be merged?
Maybe you could ping to the po of OCA asking for a review.

@skeller1
Copy link
Author

Hi @skeller1, thanks for your job!
Is there something missing in the pr or could be merged?
Maybe you could ping to the po of OCA asking for a review.
I think the addon has the same functionality as V12.
I would like to add an survey generation from contacts list view (custom wizard). Maybe this is a complete new addon.

But so far: I think we could merge this for V13.
AFAIK maintainer will merge as soon as possible. It tooks some time ......

Thank you

@pedrobaeza
Copy link
Member

There seems to not be interest in reviewing this module so far, but trusting on CI and the contributor, I merge it:

/ocabot merge nobump

Note that this is the exception, not the rule. @bruno-zanotti you can review it as well: https://odoo-community.org/page/review, and you can ask for reviews in exchange of you reviewing other PRs.

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 13.0-ocabot-merge-pr-33-by-pedrobaeza-bump-nobump, awaiting test results.

@skeller1
Copy link
Author

Note that this is the exception, not the rule.

@pedrobaeza Thank you for merging. No offense meant. Thank you for all your work.

@OCA-git-bot OCA-git-bot merged commit c77213d into OCA:13.0 Oct 26, 2020
@OCA-git-bot
Copy link
Contributor

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