accall_quotation_report_view.xml 16.0 KB
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
    <template id="acctall_report_quotation">
        <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;">
                            <!-- <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 class="col-xs-6" style="width: 50%;text-align: right;color:#3d85c6;">
                            <strong style="max-height: 70px;width:250px">QUOTATION</strong>
                        </div>
                    </div>
                    <div class="row unovo-report-purchase-footer">
                        <div class="col-xs-6" style="width: 100%;text-align: right;">
                            <p>报价单编号:<span t-field="o.name"/></p>
                        </div>
                    </div>
                    <br/>
                    <div class="unovo-report-purchase-title"><span t-field="o.sale_company.name"/></div>
                    <div class="unovo-report-purchase-content">
                        <p>
                            <p>全国免费电话:400-088-1622</p>
                            <p>上海市闵行区联航路1588号中心大道西路18号楼 邮编:201112</p>
                            <p>电话:+86-21-62208085   +86-21-62208090      传真:+86-21-51026636</p>
                        </p>
                    </div>
                    <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                        <tr>
                            <th class="text-center" >
                                <strong>报价日期</strong>
                            </th>
                            <th class="text-center" >
                                <strong>公司名称</strong>
                            </th>
                            <th class="text-center" >
                                <strong>联系人</strong>
                            </th>
                            <th class="text-center">
                                <strong>电话</strong>
                            </th>
                            <th class="text-center">
                                <strong>运输</strong>
                            </th>
                            <th class="text-center">
                                <strong>交货期</strong>
                            </th>
                        </tr>
                        <tr>
                            <td class="text-center">
                                <span t-field="o.last_date"/>
                            </td>
                            <td class="text-center">
                                <span t-field="o.partner_id.name"/>
                            </td>
                            <td class="text-center">
                                <span t-esc="o.contact_id.name"/>
                            </td>
                            <td class="text-center">
                                <span t-field="o.contact_id.phone"/>
                            </td>
                            <td class="text-center">
                                <span t-field="o.transaction_mode.name"/>
                            </td>
                            <td class="text-center">
                                <span t-field="o.delivery_time"/>
                            </td>
                        </tr>
                    </table>
                    <br/>
                    <br/>
                    <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                        <tr>
                            <th class="text-center">
                                <strong>负责人</strong>
                            </th>
                            <th class="text-center" >
                                <strong>联系方式</strong>
                            </th>
                            <th class="text-center" >
                                <strong>邮箱</strong>
                            </th>
                        </tr>
                        <tr>
                            <td class="text-center">
                                <span t-field="o.user_id.name"/>
                            </td>
                            <td class="text-center">
                                <span t-field="o.user_id.phone"/>
                            </td>
                            <td class="text-center">
                                <span t-field="o.user_id.email"/>
                            </td>
                        </tr>
                    </table>
                    <br/>
                    <br/>
                    <div class="unovo-report-purchase-content">
                        <p>
                            报价产品信息:
                        </p>
                    </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:60%;">
                                <strong>产品描述</strong>
                            </th>
                            <th class="text-center" style="width:5%;">
                                <strong>数量</strong>
                            </th>
                            <th class="text-center" style="width:5%;">
                                <strong>单位</strong>
                            </th>
                            <!-- <th class="text-center">
                                <strong>单价</strong>
                            </th>
                            <th class="text-center" >
                                <strong>小计</strong>
                            </th> -->
                        </tr>
                        <tr t-foreach="o.accquotation_line" t-as="line">
                            <td class="text-center">
                                <span t-field="line.product_id.product_tmpl_id.product_model"/>
                            </td>
                            <td class="text-center">
                                <span t-field="line.product_id.product_tmpl_id.name"/>
                            </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.price_unit" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                            </td>
                            <td class="text-center">
                                <span t-esc="line.price_unit*line.product_qty" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                            </td> -->
                        </tr>
                    </table>
                    <table cellspacing="3" style="width:25%;" align="right">
                        <tr>
                            <td style="width:50%;">
                                小计(<span t-field="o.currency_id.name"/>):
                            </td>
                            <td >
                                <span t-esc="o.amount_untaxed" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                税费(<span t-field="o.currency_id.name"/>):
                            </td>
                            <td>
                                <span t-esc="o.amount_tax" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                折扣(<span t-field="o.currency_id.name"/>):
                            </td>
                            <td >
                                <span t-esc="o.discount" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                运费(<span t-field="o.currency_id.name"/>):
                            </td>
                            <td >
                                <span t-esc="o.ship_fee" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                合计(<span t-field="o.currency_id.name"/>):
                            </td>
                            <td>
                                <!-- <span t-esc="o.amount_total - o.discount_amount - o.ship_fee" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> -->
                                <span t-esc="o.amount_total" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                            </td>
                        </tr>
                        <tr>
                            <th>
                              <p>                                                              
                              </p>  
                            </th>
                            <td>
                                <p>                                                              
                              </p>
                            </td>
                        </tr>
                    </table>
                    <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                        <!-- <tr>
                                <th colspan="3" class="text-center">
                                    <strong>Other Comments or Special Instructions</strong>
                                </th>
                            </tr> -->
                            <tr>
                                <td>
                                  <p style="text-align:center">谢谢你的询价。以上为您所感兴趣的产品价格信息。如果您还需要我公司的其他产品信息或者资料</p>
                                  <p style="text-align:center">请浏览我公司网站:</p>
                                  <p style="text-align:center">http://www.neotel-technology.com</p>
                                </td>
                            </tr>
                    </table>
                    <br/>
                    <br/>
                    <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>
                                   <p>附注:</p>
                                        <p style="text-indent:2em;">1、  以上价格为人民币价格,含<span t-field="o.tax_id.amount"/>%增值税</p>
                                        <p style="text-indent:2em;">2、  交货周期为收到预付款后<span t-field="o.delivery_time"/></p>
                                        <p style="text-indent:2em;">3、  付款方式:<span t-field="o.transaction_rule"/></p>
                                </td>
                            </tr>
                    </table>
                    <br/>
                    <br/>
                    <br/>
                    <!-- <div class="row unovo-report-purchase-title">
                        <div class="col-xs-6" style="width: 100%;text-align: center;">
                            <img t-att-src="'data:image/png;base64,%s' % qr_code" style="max-height: 2100px;width:210px"/>
                        </div>
                    </div> -->
                    <div class="footer">    
                        <div class="col-xs-6" style="width: 100%;text-align: right;">
                            <img t-att-src="'data:image/png;base64,%s' % qr_code" style="max-height: 70px;width:70px"/>
                        </div>  
                    </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>