mirror of
https://gitlab.com/flectra-community/reporting-engine.git
synced 2024-12-23 12:51:47 +00:00
28 lines
1.2 KiB
XML
28 lines
1.2 KiB
XML
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<flectra>
|
||
|
<record id="demo_report" model="ir.actions.report">
|
||
|
<field name="name">Watermark Demo report</field>
|
||
|
<field name="model">res.users</field>
|
||
|
<field name="report_type">qweb-pdf</field>
|
||
|
<field name="report_name">report_qweb_pdf_watermark.demo_report_view</field>
|
||
|
<field name="report_file">report_qweb_pdf_watermark.demo_report_view</field>
|
||
|
<field name="paperformat_id" ref="base.paperformat_euro" />
|
||
|
<field name="pdf_watermark_expression">docs[:1].company_id.logo</field>
|
||
|
<field name="binding_model_id" ref="base.model_res_users" />
|
||
|
<field name="binding_type">report</field>
|
||
|
</record>
|
||
|
<template id="demo_report_view">
|
||
|
<t t-call="web.html_container">
|
||
|
<t t-call="web.external_layout">
|
||
|
<div class="page">
|
||
|
<ul>
|
||
|
<li t-foreach="docs" t-as="doc">
|
||
|
<t t-esc="doc.name" />
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</t>
|
||
|
</t>
|
||
|
</template>
|
||
|
</flectra>
|