Hello,
I have made a custom module to use my own invoice template. I have put all styling information directly into my report view xml. But now I really want to put all css into a separate file.
Therefore I created a css file in the following path /my_invoice_report/static/src/css/invoice_style.css
Now I want to include this file to my view, but it is not recognized.
The beginning of my view looks like this:
<odoo>
<data>
<template id="account_invoice_print" inherit_id="account.report_invoice_with_payments">
<xpath expr="//t[@t-call='web.html_container']" position="replace">
<link href="/my_invoice_report/static/src/css/invoice_style.css" rel='stylesheet' />
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<div class="article">
<div>
<p align="right"><img t-att-src="'data:image/png;base64,%s' % to_text(o.company_id.logo)"/></p>
Can anybody tell my, what I am doing wrong?
Regards
Lars