I would like to inherit (or extends) the html_container template for a specific report, in order to add a CSS stylesheet.
Is it possible?
I tried with t-jquery, t-extend, ... but it does not seem to work.
In v8 you need to do it with xpath. An example for the header:
<?xml version="1.0" encoding="utf-8"?>
<template id="report_header_custom" inherit_id="report.external_layout_header">
<xpath expr="//div[@class='header']" position="replace">
<div class ="header">
The id needs to be unique, or otherwise it will override an existing one.
The inherit_id is the modul name and the id of the report, which you want to extend or change.
The rest ist just standard odoo xpath.
I hope it helps.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/8/14, 10:04 AM|
|Seen: 11739 times|
|Last updated: 11/7/16, 5:03 AM|