Community mailing list archives

community@mail.odoo.com

Re: Replace a whole Qweb template using inheritance

by
Yassine TEIMI
- 12/09/2015 07:04:30
Hi Dear community, 

Any hints ?

2015-12-07 18:33 GMT+00:00 Yassine Teimi <yteimi01@gmail.com>:
Dears, 

I'm working on the survey module, especially on the survey_result.xml file containing all the templates results. I want to change the whole result_matrix template code (the result displayed for all matrix question type) using inheritance. 

So I used : 

<template id="result_matrix_extended" inherit_id="survey.result_matrix">
<xpath expr="." position="replace">
      <!-- New custom code here -->
    </xpath>
</template>
But it seems that it doesn't work, because the parent result_matrix is not recognized by the qweb engine anymore when trying to render the survey results.
Can you give a hand please ? Thanks a lot dears.
--

Cordialement

Yassine TEIMI

Consultant & Odoo Project Manager
TEL : +212 6-87 71 41 18



--

Cordialement

Yassine TEIMI

Consultant & Odoo Project Manager
TEL : +212 6-87 71 41 18