I try inherit survey.question_container like this
<template id="question_container_inherit" inherit_id="survey.question_container" primary="True">
<xpath expr="//div[@t-att-id='question.id']" position="replace">
<p>New text</p>
</xpath>
</template>
I think the inherit is success, odoo able to find the ID and the expression (since there is no error).
I expect the answer option will be replaced by text "New text"
But when I open survey template, nothing happen. no change in the view.
How to reproduce :
- just put xml code above into xml and install or upgrade the module
I already make sure there is no module that also inherit question_container
id question_container is in "odoo/addons/survey/views/survey_templates.xml"
I also make sure the module is upgraded.
When I said "nothing happen". I mean the survey template is still look like odoo based. There is no change. The view is rendered properly, but the option still exist (it should have been replaced by "New text"