2
Print the Survey Browse Response Report through the wizard
4
!python {model: survey}: |
6
ctx.update({'model': 'survey','active_ids': [(6,0,[ref('survey.survey_partner_feedback')])]})
7
data_dict = {'response_ids' : [(6,0,[ref('survey.survey_partner_feedback')])], 'page_number' : True, 'without_pagebreak': True}
8
from tools import test_reports
9
test_reports.try_report_action(cr, uid, 'action_view_survey_print_answer',wiz_data=data_dict, context=ctx, our_module='survey')
12
Print the Survey Analysis Report through the wizard
14
!python {model: survey}: |
16
ctx.update({'model': 'survey','active_ids': [(6,0,[ref('survey.survey_partner_feedback')])]})
17
data_dict = {'survey_ids' : [(6,0,[ref('survey.survey_partner_feedback')])]}
18
from tools import test_reports
19
test_reports.try_report_action(cr, uid, 'action_view_survey_print_statistics',wiz_data=data_dict, context=ctx, our_module='survey')
22
Print the Survey Form Report through the wizard
24
!python {model: survey}: |
26
ctx.update({'model': 'survey','active_ids': [(6,0,[ref('survey.survey_partner_feedback')])]})
27
data_dict = {'survey_ids' : [(6,0,[ref('survey.survey_partner_feedback')])], 'page_number' : True, 'without_pagebreak': True}
28
from tools import test_reports
29
test_reports.try_report_action(cr, uid, 'action_view_survey_print',wiz_data=data_dict, context=ctx, our_module='survey')