Skip to content

Commit

Permalink
[MIG] crm_survey: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasperalta1 committed Jun 27, 2023
1 parent 8565d80 commit 5bd9905
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions crm_survey/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ CRM UX
This adds some features to CRM of odoo:

#. Show the field "Company" in the oportunities view form.
#. Allows you to collect information for your opportunities through surveys
#. Select a previusly created survey (survey app)
#. Press the "start interview" button to complete the survey or print the survey from the "print interview" button

Installation
============
Expand Down
4 changes: 2 additions & 2 deletions crm_survey/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': "CRM SURVEY",
'version': '13.0.1.0.0',
'version': "16.0.1.0.0",
'category': 'Human Resources Survey',
'license': 'AGPL-3',
'author': 'ADHOC SA',
Expand All @@ -30,7 +30,7 @@
'views/crm_job_views.xml',
'views/crm_applicant_views.xml',
],
'installable': False,
'installable': True,
'auto_install': False,
'application': False,
}
4 changes: 2 additions & 2 deletions crm_survey/models/crm_applicant.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def action_start_survey(self):
response = self.response_id
# grab the token of the response and start surveying
return self.survey_id.with_context(
survey_token=response.token).action_start_survey()
survey_token=response.access_token).action_start_survey()

def action_print_survey(self):
""" If response is available then print"""
Expand All @@ -34,4 +34,4 @@ def action_print_survey(self):
else:
response = self.response_id
return self.survey_id.with_context(
survey_token=response.token).action_print_survey()
survey_token=response.access_token).action_print_survey()

0 comments on commit 5bd9905

Please sign in to comment.