Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1655 Lượt xem

I want to add some custom field. But I still got error even with the minimum amount of change

This is my attempt





        <!-- Question widgets -->
        <template id="survey.question_container_inherit" name="Survey: question container inherit prestaterre" inherit_id="survey.question_container" >
            <xpath expr="//t[@t-set='display_question']" position="after">
                <t t-set="hidden" t-value="any(item in hidden_protocol.get(question.mention_id.id, []) for item in selected_answers_requirement)"/>
            </xpath>
        </template>



And I got this error






Actually my code is much longer than this. And if the code above is working, it will not change anything in the view




but if this small change get error, the longer one won't run either






Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

nvm. I solve it. In case anyone want to know. The problem is with the opening tag

Here is the correct one

<template id="question_container_inherit" inherit_id="survey.question_container" primary="True">

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 24
1498
2
thg 6 24
2190
3
thg 7 25
1937
2
thg 6 25
2375
1
thg 6 25
2210