Skip to Content
Menu
This question has been flagged
1013 Views

Hey i am trying to print a sequence field on survey web report. i have a One2many field 

user_input_ids = fields.One2many('survey.user_input', 'survey_id', string='User responses', readonly=True)
This has all the values and then i inherit the template and do this

<template id="print_inherit" inherit_id="survey.survey_print">
<xpath
expr="//div[@class='jumbotron mt32']//h1" position="before">

<t
t-foreach='survey.user_input_ids' t-as='label'>
<h1
t-field ='label.my_field' />
</t>
</xpath>
</template>

But this prints all the values on the report. while i want only one sepecific value which was in survey.user_input. Kindly help. Thanks
Avatar
Discard