49 lines
2.1 KiB
XML
49 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="all_demo_report_actions" model="ir.actions.report">
|
|
<field name="name">demo report</field>
|
|
<field name="model">approval.request</field>
|
|
<field name="report_type">qweb-pdf</field>
|
|
<field name="report_name">yuthon_approval.all_approval_template</field>
|
|
<field name="report_file">yuthon_approval.all_approval_template</field>
|
|
<field name="print_report_name">'Demo - %s' % (object.name).replace('/', '')</field>
|
|
<!-- <field name="binding_model_id" ref="model_approval_request"/>-->
|
|
<field name="binding_model_id" eval="False"/>
|
|
<field name="binding_type">report</field>
|
|
</record>
|
|
|
|
<template id="all_approval_template">
|
|
<t t-call="web.basic_layout" t-foreach="docs" t-as="doc">
|
|
<div class="page">
|
|
<h2 style="text-align:center;">
|
|
<storng>
|
|
<t t-esc="doc.name"/>
|
|
</storng>
|
|
</h2>
|
|
<table width="100%" style="table-layout:fixed;">
|
|
<tr colspan="7" rowspan="2">
|
|
<td colspan="4">
|
|
<strong>申请人:</strong>
|
|
<span t-field="doc.request_owner_id"/>
|
|
</td>
|
|
<td colspan="4">
|
|
<strong>确认时间:</strong>
|
|
<span t-field="doc.date_confirmed"/>
|
|
</td>
|
|
</tr>
|
|
<tr colspan="7" rowspan="2">
|
|
<td colspan="4">
|
|
<strong>审批类型:</strong>
|
|
<span t-field="doc.category_id.name"/>
|
|
</td>
|
|
<td colspan="4">
|
|
<strong>审批状态:</strong>
|
|
<span t-field="doc.request_status"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</odoo>
|