96 lines
4.1 KiB
XML
96 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="room_booking_report_template">
|
|
<t t-call="web.basic_layout" t-foreach="docs" t-as="doc">
|
|
<style type="text/css">
|
|
thead > tr > td {
|
|
border:1px solid #000000;
|
|
text-align:center;
|
|
vertical-align:middle;
|
|
height: 2m;
|
|
}
|
|
</style>
|
|
<div class="page">
|
|
<h2 style="text-align:center;">
|
|
<storng>
|
|
<t t-esc="doc.name"/>签到表
|
|
</storng>
|
|
</h2>
|
|
</div>
|
|
<div style="text-align:right;">
|
|
打印时间:
|
|
<t t-esc="datetime.date.today().strftime('%Y-%m-%d')" />
|
|
</div>
|
|
<table width="100%" style="table-layout:fixed;">
|
|
<thead>
|
|
<tr colspan="12" rowspan="4">
|
|
<td colspan="2" style="border-bottom: none;">
|
|
<strong>序号</strong>
|
|
</td>
|
|
<td colspan="2" style="border-bottom: none;">
|
|
<strong>单位</strong>
|
|
</td>
|
|
<td colspan="2" style="border-bottom: none;">
|
|
<strong>职务</strong>
|
|
</td>
|
|
<td colspan="2" style="border-bottom: none;">
|
|
<strong>姓名</strong>
|
|
</td>
|
|
<td colspan="2" style="border-bottom: none;">
|
|
<strong>手机号</strong>
|
|
</td>
|
|
<td colspan="2" style="border-bottom: none;">
|
|
<strong>人员类型</strong>
|
|
</td>
|
|
<td colspan="2" style="border-bottom: none;">
|
|
<strong>签到状态</strong>
|
|
</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<table width="100%" style="table-layout:fixed;">
|
|
<thead>
|
|
<t t-set="seq" t-value="0"/>
|
|
<t t-foreach="doc.meeting_sing_ids" t-as="dm">
|
|
<tr colspan="12" rowspan="4">
|
|
<td colspan="2">
|
|
<t t-set="seq" t-value="seq + 1"/><t t-esc="seq"/>
|
|
</td>
|
|
<td colspan="2">
|
|
<sapn t-field="dm.partner_name"/>
|
|
</td>
|
|
<td colspan="2">
|
|
<sapn t-field="dm.job"/>
|
|
</td>
|
|
<td colspan="2">
|
|
<sapn t-field="dm.sign_user_name"/>
|
|
</td>
|
|
<td colspan="2">
|
|
<sapn t-field="dm.mobile"/>
|
|
</td>
|
|
<td colspan="2">
|
|
<t t-esc="dict(dm._fields['user_type'].selection).get(dm.user_type)"/>
|
|
</td>
|
|
<td colspan="2">
|
|
<t t-esc="dict(dm._fields['sign_type'].selection).get(dm.sign_type)"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</thead>
|
|
</table>
|
|
</t>
|
|
</template>
|
|
|
|
<record id="room_booking_report_actions" model="ir.actions.report">
|
|
<field name="name">会议签到表打印</field>
|
|
<field name="model">room.booking</field>
|
|
<field name="report_type">qweb-pdf</field>
|
|
<field name="report_name">room.room_booking_report_template</field>
|
|
<field name="report_file">room.room_booking_report_template</field>
|
|
<field name="print_report_name">'%s-签到表' % (object.name).replace('/', '')</field>
|
|
<field name="binding_model_id" ref="model_room_booking"/>
|
|
<field name="binding_type">report</field>
|
|
</record>
|
|
|
|
|
|
</odoo> |