Skip to Content
Menu
This question has been flagged

I am trying to write a parser (render_html) for a custom template which inherits report.minimal_layout without sucess.

I can write parsers (render_html) for other templates.

This is my template:

<template id="report_saleorder_css" inherit_id="report.minimal_layout">
<xpath expr="html/head/*[position() = last()]" position="after">
<span>AAA</span><span><t t-esc="css_file" /></span><span>BBB</span>
</xpath>
</template>

I would like to write a parser that passes css_file as variable.

Please avoid standard non-tested answers, as mentioned, I already tried the standard parser from Odoo documentation and it did not work, and I can perfectly write parsers for other templates. I begin to suspect that templates belonging to report (and inherited ones) are outside the scope of custom classes with render_html. Thanks

Avatar
Discard
Related Posts Replies Views Activity
1
Apr 22
8015
3
Nov 22
7120
2
Dec 19
7441
0
Nov 18
4025
1
Oct 24
9863