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] survey #2305

Merged
merged 3 commits into from
Nov 20, 2020
Merged

[13.0][MIG] survey #2305

merged 3 commits into from
Nov 20, 2020

Conversation

Yasaie
Copy link
Member

@Yasaie Yasaie commented Apr 15, 2020

Migration of survey

Depends on gamification

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@Yasaie Yasaie force-pushed the 13.0-mig-survey branch 2 times, most recently from 8a73ed2 to ea866c6 Compare April 15, 2020 10:41
@gdgellatly
Copy link

Receive the following error migrating a database with only mis-builder as third party module.

psycopg2.IntegrityError: duplicate key value violates unique constraint "ir_model_fields_name_unique"
DETAIL:  Key (model, name)=(survey.question, survey_id) already exists.

@gdgellatly
Copy link

@MiquelRForgeFlow It might pay to check. Just testing a migration and the field access_token is being set on surveys as it is a new field, however all surveys are receiving an identical access token, which is then causing constraints not to be applied and singleton errors on accessing via respondent link.

Populate a unique token for each existing survey, as default method populates the same
for all.

Co-authored by: Graeme Gellatly <gdgellatly@gmail.com>
@pedrobaeza pedrobaeza merged commit 29ac190 into OCA:13.0 Nov 20, 2020
@Yasaie Yasaie deleted the 13.0-mig-survey branch July 20, 2021 05:52
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.

5 participants