accstock_report_views.xml 9.3 KB
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
    <template id="acct_report_stock">
        <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:20px;
                    font-size:16px;
                    border:1px solid #ccc;
                    background:#FFF
                    text-align: center;
                    }
                    .unovo-report-purchase-table p {
                    margin:5px 0px;
                    }
                    .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;">
                            <br/>
                            <img t-att-src="'data:image/png;base64,%s' % logo" style="max-height: 2000px;width:170px"/>
                        </div>
                        <div class="col-xs-6" style="width: 50%;text-align: left;">
                            <div class="unovo-report-purchase-content">
                                <p>
                                    <p><span t-field="o.so_obj.sale_company.name"/></p>
                                    <p>上海市闵行区联航路1588号中心大道西路18栋</p>
                                    <p>电话: 0086-21-6220 8090</p>
                                    <p>传真:0086-21-5102 6636</p>
                                    <p>邮箱: info@neotel-technology.com</p> 
                                </p>
                            </div>
                        </div>
                    </div>
                    <br/>
                    <div class="unovo-report-purchase-title">出货单</div>
                    <br/>
                    <div class="unovo-report-purchase-content">
                        <p>
                        客户订单号:<span t-field="so_obj.partner_ponumber"/> 
                        </p>
                        <p>
                        SO:<span t-field="so_obj.name"/> 
                        </p>
                        <p>
                        出货日期:<span t-esc="partner_info.get('now_date', '')"/> 
                        </p>
                    </div>
                    <br/>
                    <div class="unovo-report-purchase-content">
                        <div style="text-align:left">
                            <span style="float:left;width:50%">
                                出货公司:<span t-field="so_obj.sale_company"/> 
                            </span>
                            <span style="float:left;width:50%">
                                收货公司:<span t-field="o.partner_id.name"/> 
                            </span>
                            <span style="float:left;width:50%">
                                联系人:<span t-field="so_obj.user_id.name"/>
                            </span>
                            <span style="float:left;width:50%">
                                联系人: 
                            </span>
                            <span style="float:left;width:50%">
                                联系电话:<span t-field="so_obj.user_id.phone"/> 
                            </span>
                            <span style="float:left;width:50%">
                                联系电话: 
                            </span>
                            <span style="float:left;width:50%">
                                &amp;nbsp; 
                            </span>
                            <span style="float:left;width:50%">
                                收货地址:<span t-field="o.partner_id.street"/> 
                            </span>
                        </div>
                    </div>
                    <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                        <tr>
                            <th class="text-center" style="width:15%;">
                                <strong>产品名称</strong>
                            </th>
                            <th class="text-center" style="width:15%;">
                                <strong>产品型号</strong>
                            </th>
                            <th class="text-center" style="width:35%;">
                                <strong>描述</strong>
                            </th>
                            <th class="text-center" style="width:10%;">
                                <strong>数量</strong>
                            </th>
                            <th class="text-center" style="width:10%;">
                                <strong>包装方式</strong>
                            </th>
                            <th class="text-center" style="width:10%;">
                                <strong>包装数量</strong>
                            </th>
                        </tr>
                        <tr t-foreach="so_obj.quotation_line" t-as="line">
                            <td class="text-center">
                                <span t-field="line.product_id.product_tmpl_id.name"/>
                            </td>
                            <td class="text-center">
                                <span t-field="line.product_id.product_tmpl_id.product_model"/>
                            </td>
                            <td style="text-align:left;">
                                <span t-field="line.product_id.product_tmpl_id.product_describe_cn"/>
                            </td>
                            <td class="text-center">
                                <span t-field="line.product_qty"/>
                            </td>

                            <td class="text-center">
                                <span t-field="line.product_uom.name"/>
                            </td>
                            <td class="text-center">
                                <span t-field="line.product_uom.name"/>
                            </td>
                        </tr>
                    </table>
                    <br/>
                    <br/>
                    <div class="unovo-report-purchase-content" >
                        <p>
                            运输方式: 
                        </p>
                        <p>
                            物流单号: 
                        </p>
                        <br/>
                        <br/>
                        <p>
                            客户签字: 
                        </p>
                        <br/>
                        <p>
                            日期: 
                        </p>
                    </div>
                </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>