Initial commit
This commit is contained in:
9
pdf_print_preview/report/ir_actions_report.xml
Normal file
9
pdf_print_preview/report/ir_actions_report.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="action_report_pdf_print_preview" model="ir.actions.report">
|
||||
<field name="name">Pdf print preview</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">pdf_print_preview.report_error_catcher</field>
|
||||
</record>
|
||||
</odoo>
|
||||
19
pdf_print_preview/report/ir_actions_report_templates.xml
Normal file
19
pdf_print_preview/report/ir_actions_report_templates.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<template id="report_error_catcher">
|
||||
<t t-set="company" t-value="env.company"/>
|
||||
<t t-call="web.html_container">
|
||||
<t t-call="web.internal_layout">
|
||||
<div class="page">
|
||||
<h5><b>Oops</b> Something went wrong when we printing the PDF:</h5>
|
||||
<br/>
|
||||
<div class="alert alert-danger">
|
||||
<p><t t-esc="error" /></p>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user