acc_expense_report_view.xml 8.2 KB
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
    <template id="acct_report_expense_sheet">
        <t t-call="web.basic_layout">
            <t t-foreach="docs" t-as="o">
                <style tyle="text/css">
                    .unovo-report-purchase-title {
                    font-family:"DengXian";
                    font-size: 25px;
                    font-weight: bold;
                    text-align:center;
                    line-height:40px;
                    }
                    .unovo-report-purchase-header {
                    font-family:"DengXian";
                    line-height:22px;
                    font-size:16px;
                    text-align:right;
                    }
                    .unovo-report-purchase-table {
                    vertical-align: middle;
                    font-family:"DengXian";
                    border:1px solid #ccc;
                    width:100%;
                    border-collapse:collapse;
                    border:1px solid #ccc;
                    background:#FFF
                    }
                    .unovo-report-purchase-table th{
                    font-weight:bold;
                    text-align:center;
                    height:20px;
                    font-size:16px;
                    border:1px solid #ccc;
                    }
                    .unovo-report-purchase-table td{
                    height:30px;
                    font-size:16px;
                    border:1px solid #ccc;
                    background:#FFF
                    text-align: center;
                    }
                    .unovo-report-purchase-total {
                    line-height:20px;
                    font-size:16px;
                    }
                    .unovo-report-purchase-content {
                    font-family:"DengXian";
                    line-height:22px;
                    font-size:16px;
                    }
                    .unovo-report-purchase-content p {
                    margin:5px 0px;
                    }
                    .unovo-report-purchase-footer {
                    font-family:"DengXian";
                    line-height:22px;
                    font-size:16px;
                    }
                </style>
                <div class="page">
                    <!-- <div class="header">
                        <div class="row">
                            <div class="col-xs-3">
                            <span t-field="o.purchase_company.name"/>
                            </div>
                        </div>
                    </div> -->
                    <!-- <div class="row unovo-report-purchase-title">
                        <div class="col-xs-6" style="width: 50%;text-align: left;">
                            <img t-att-src="'data:image/jpg;base64,%s' % o.purchase_company.logo" style="max-height: 45px;"/>
                            <img t-att-src="'data:image/png;base64,%s' % logo" style="max-height: 110px;width:170px"/>
                        </div>
                    </div> -->
                    <!-- <br/> -->
                    <div class="unovo-report-purchase-title">付 款 审 批</div>
                    <br/>
                    <br/>
                    <div class="unovo-report-purchase-content">
                        <p>
                            申请日期:<span t-field="o.create_date"/>
                        </p>
                    </div>
                    <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                            <tr>
                                <td class="text-center" style="width:30%;height:50px;align=center">
                                    申请人
                                </td>
                                <td class="text-center">
                                    <span t-field="o.employee_id.name"/>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-center" style="width:30%;height:50px">
                                    申请人部门
                                </td>
                                <td class="text-center">
                                    <span t-field="o.employee_id.department_id.name"/>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-center" style="width:30%;height:50px">
                                    付款日期
                                </td>
                                <td class="text-center">
                                    下单日期:<span t-field="o.accounting_date"/>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-center" style="width:30%;height:50px">
                                    事由
                                </td>
                                <td class="text-center">
                                    <span t-field="o.name" style="width:30%;height:50px"/>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-center" style="width:30%;height:50px">
                                    金额
                                </td>
                                <td class="text-center">
                                    <span t-esc="o.total_amount" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-center" style="width:30%;height:50px">
                                    收款人
                                </td>
                                <td class="text-center">
                                    <span t-field="o.employee_id.name"/>
                                </td>
                            </tr>
                            <!-- <tr>
                                <td class="text-center">
                                    备注
                                </td>
                                <td class="text-center">
                                    下单日期:<span t-field="o.name"/>
                                </td>
                            </tr>
                            <tr>
                               <td class="text-center">
                                    合同编号:<span t-field="o.name"/>
                                </td>
                                <td class="text-center">
                                    下单日期:<span t-field="o.name"/>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-center">
                                    合同编号:<span t-field="o.name"/>
                                </td>
                                <td class="text-center">
                                    下单日期:<span t-field="o.name"/>
                                </td>
                            </tr>
                            <tr>
                                <td class="text-center">
                                    合同编号:<span t-field="o.name"/>
                                </td>
                                <td class="text-center">
                                    下单日期:<span t-field="o.name"/>
                                </td>
                            </tr> -->
                        </table>
                </div>
                <div style="page-break-after:always;"></div>
            </t>

            <!-- <t t-foreach="docs" t-as="doc">
                <t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})"/>
            </t> -->
        </t>
    </template>
<!--         <template id="unovo_report_purchaseorder">
        <t t-call="report.html_container">
            <t t-foreach="doc_ids" t-as="doc_id">
                <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'unovo_report.unovo_report_purchaseorder_document')"/>
            </t>
        </t>
    </template> -->
</data>
</odoo>