Odoo Help


Write a parser for a template which inherits report.minimal_layout, is that possible?

on 6/22/17, 9:35 PM 410 views

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>

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/22/17, 9:35 PM
Seen: 410 times
Last updated: 6/22/17, 9:37 PM