odooqweb

Can we use Qweb templates inside normal views (such as form view)


I'm trying to make some debugging in a Form view, I wrote something like this inside the notebook section of a form view:

<page string="test">
  <template>
        <t t-esc="Logging!"/>
        <t t-log="Logging!"/>
        <t t-raw="Logging" > </t>
  </template>
</page>

But nothing happens as if the section doesn't exist.

Can't we use Qweb template inside other views?


Solution

  • template tag will not render in form view. You can check this answer for more details

    You can use templates in Activity, Gantt and Kanban views