137 lines
7.2 KiB
XML
137 lines
7.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="room_booking_agenda_template">
|
|
<t t-call="web.html_container">
|
|
<t t-foreach="docs" t-as="doc">
|
|
<t t-call="web.external_layout">
|
|
<style type="text/css">
|
|
/* 表格纵向版式:自适应,最大800px 居中 */
|
|
table { border-collapse: collapse; width: 100%; max-width: 800px; margin: 0 auto; table-layout: fixed; }
|
|
td { border: 1px solid #000; padding: 6px; text-align: center; vertical-align: middle; }
|
|
.title {
|
|
text-align: center;
|
|
font-weight: bold;
|
|
font-size: 20px;
|
|
padding: 12px 0;
|
|
}
|
|
.info-line {
|
|
text-align: left;
|
|
padding: 4px 0;
|
|
font-size: 14px;
|
|
}
|
|
.header-cell { font-weight: bold; background-color: #d4e6f1; width: 8%;}
|
|
.content-cell { text-align: left; padding: 8px;}
|
|
.checkbox { display: inline-block; width: 16px; height: 16px; border: 1px solid #000; margin-right: 4px; vertical-align: middle;}
|
|
.checkbox-checked { background-color: #4472C4;}
|
|
/* 隐藏意见和审批人之间的竖边框 */
|
|
.no-right-border { border-right: none !important; }
|
|
.no-left-border { border-left: none !important; }
|
|
</style>
|
|
|
|
<!-- 流水号:页面左上角,位于标题之上,浅灰色 -->
|
|
<div style="margin-bottom:8px; text-align:left; color:#999999;">
|
|
流水号:<span t-esc="doc.code or ''"/>
|
|
</div>
|
|
|
|
<!-- 标题:取字段 name(会议标题)的值 -->
|
|
<div class="title">
|
|
<span t-esc="doc.name or ''"/>
|
|
</div>
|
|
|
|
<!-- 会议基本信息 -->
|
|
<div class="info-line">
|
|
会议时间:
|
|
<span t-if="doc.start_datetime_local">
|
|
<t t-esc="doc.start_datetime_local.strftime('%Y')"/>年<t t-esc="doc.start_datetime_local.strftime('%m')"/>月<t t-esc="doc.start_datetime_local.strftime('%d')"/>日 星期<t t-esc="['一', '二', '三', '四', '五', '六', '日'][doc.start_datetime_local.weekday()]"/> <t t-if="doc.start_datetime_local.hour < 12">上午</t><t t-else="">下午</t><t t-esc="doc.start_datetime_local.strftime('%H')"/>时<t t-esc="doc.start_datetime_local.strftime('%M')"/>分
|
|
</span>
|
|
</div>
|
|
|
|
<!-- 会议形式:位于会议时间之后 -->
|
|
<div class="info-line">
|
|
会议形式:<span t-esc="dict(doc._fields['meeting_type'].selection).get(doc.meeting_type or '') or ''"/>
|
|
</div>
|
|
|
|
<div class="info-line">
|
|
会议地点:<span t-esc="doc.room_id.name or ''"/>
|
|
</div>
|
|
|
|
<div class="info-line">
|
|
主持人:<span t-esc="doc.host.name or ''"/>
|
|
</div>
|
|
|
|
<div class="info-line">
|
|
参会人员:
|
|
<t t-foreach="doc.room_users_ids" t-as="user">
|
|
<span t-esc="user.name"/>
|
|
<t t-if="not user_last">、</t>
|
|
</t>
|
|
<t t-if="doc.stationed_group">
|
|
<span>(邀请派驻组参会)</span>
|
|
</t>
|
|
</div>
|
|
|
|
<!-- 其他人员:位于参会人员之后 -->
|
|
<div class="info-line">
|
|
其他人员:
|
|
<t t-foreach="doc.other_company_user_ids" t-as="other_user">
|
|
<span t-esc="other_user.name"/>
|
|
<t t-if="not other_user_last">、</t>
|
|
</t>
|
|
</div>
|
|
|
|
<div class="info-line">
|
|
记录员:
|
|
<t t-foreach="doc.recorder_ids" t-as="recorder">
|
|
<span t-esc="recorder.name"/>
|
|
<t t-if="not recorder_last">、</t>
|
|
</t>
|
|
</div>
|
|
|
|
<!-- 议题表格 -->
|
|
<table style="margin-top: 10px;">
|
|
<colgroup>
|
|
<col style="width:8%"/>
|
|
<col style="width:40%"/>
|
|
<col style="width:15%"/>
|
|
<col style="width:22%"/>
|
|
<col style="width:15%"/>
|
|
</colgroup>
|
|
<tr>
|
|
<td class="header-cell"><strong>序号</strong></td>
|
|
<td class="header-cell"><strong>议题</strong></td>
|
|
<td class="header-cell"><strong>传达(汇报)人</strong></td>
|
|
<td class="header-cell"><strong>列席人员</strong></td>
|
|
<td class="header-cell"><strong>是否属于"三重一大"</strong></td>
|
|
</tr>
|
|
<t t-set="sequence_number" t-value="1"/>
|
|
<t t-foreach="doc.issue_meeting_line_ids" t-as="line">
|
|
<tr>
|
|
<td><span t-esc="sequence_number"/></td>
|
|
<td class="content-cell">
|
|
<span t-esc="line.issue_library_id.name or ''"/>
|
|
</td>
|
|
<td>
|
|
<span t-esc="line.employee_id.name or ''"/>
|
|
</td>
|
|
<td class="content-cell">
|
|
<!-- 列席人员 = 参会人员 + 其他人员 -->
|
|
<t t-set="attendee_names" t-value="[u.name for u in doc.room_users_ids] + [o.name for o in doc.other_company_user_ids]"/>
|
|
<t t-foreach="attendee_names" t-as="attendee_name">
|
|
<span t-esc="attendee_name"/>
|
|
<t t-if="not attendee_name_last">、</t>
|
|
</t>
|
|
</td>
|
|
<td>
|
|
<span t-if="line.is_sanda">是</span>
|
|
<span t-else="">否</span>
|
|
</td>
|
|
</tr>
|
|
<t t-set="sequence_number" t-value="sequence_number + 1"/>
|
|
</t>
|
|
</table>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|