Skip to content

Commit

Permalink
[ADD] Load reset.min.css later
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanRijnhart committed Apr 24, 2017
1 parent b346061 commit 5827f05
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions report_qweb_pdf_watermark/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ To use this module, you need to:
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/143/8.0

Known Issues
============
This module depends on support for transparent backgrounds in Wkhtmltopdf, which has been flaky in the past. This module has been reported to work with Wkhtmltopdf 0.12.4.

Bug Tracker
===========

Expand Down
1 change: 1 addition & 0 deletions report_qweb_pdf_watermark/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"data": [
"demo/report.xml",
"views/ir_actions_report_xml.xml",
"views/layout_templates.xml",
],
}
12 changes: 12 additions & 0 deletions report_qweb_pdf_watermark/views/layout_templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- hackish workaround for https://github.com/odoo/odoo/issues/16610 -->
<template id="minimal_layout" inherit_id="report.minimal_layout">
<xpath expr="//t[@t-call-assets='report.assets_common' and @t-js='false']"
position="replace"/>
<xpath expr="//t[@t-call-assets='report.assets_pdf' and @t-js='false']"
position="before">
<t t-call-assets="report.assets_common" t-js="false"/>
</xpath>
</template>
</odoo>

0 comments on commit 5827f05

Please sign in to comment.