acc_quotation_report_view2.xml 19.7 KB
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
      <template id="acct_report_quotation">
        <t t-call="web.basic_layout">
            <t t-foreach="docs" t-as="o">
                <style type="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-name{
                        font-family:"DengXian";
                        font-size: 25px;
                        font-weight: bold;
                        line-height:40px;
                    }
                    .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:left;
                    height:20px;
                    font-size:14px;
                    border:1px solid #ccc;
                    }
                    .unovo-report-purchase-table td{
                    height:20px;
                    font-size:14px;
                    border:1px solid #ccc;
                    background:#FFF;
                    text-align: left;
                    }
                    .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-address {
                    font-size: 14px;margin: 7px 0 35px;
                    font-family:"DengXian";
                    font-size:14px;
                    }
                    .unovo-report-purchase-content p {
                    margin:5px 0px;
                    }
                    .unovo-report-purchase-footer {
                    font-family:"DengXian";
                    line-height:22px;
                    font-size:16px;
                    }
                    .unovo-report-purchase-about{
                        vertical-align: middle;
                        font-family:"DengXian";
                        width:100%;
                        background:#FFF;
                        font-size: 14px;
                    }
                    .new-page-css{
                        min-width: 721px;
                        padding: 0 20px;
                    }
                    .title_position{
                        min-width: 80px;
                        text-align: left;position: relative;
                    }
                    .quotationcss{
                        max-height: 70px;position: absolute;right: 0;bottom: -15px;font-size: 30px;
                    }
                    .unovo-report-purchase-footer .text_right{
                        width: 100%;text-align: right;
                    }
                    .text_linehaight{
                        padding: 0 5px;line-height: 22px;
                    }
                    .font14{
                        font-size: 14px;
                    }
                    .padd5{
                        padding: 0 5px;
                    }
                    .connaction{
                        display: inline-block;width: 20%;margin-left: 10%;
                    }
                    .xcode{
                        display: inline-block;position: absolute;bottom: -5px;right:40px;
                    }
                    .imgCss{
                        max-height: 110px;width:170px
                    }
                    .total-css{
                        min-width:170px;font-size: 14px;
                    }
                    .interested-css{
                        width: 70%;background:#f8f8f8;border: 1px solid #f2f2f2;text-align:center;padding: 5px 0;
                    }
                    .weixinCss{
                        width: 125px;
                        padding:10px;
                        background:#f8f8f8 !important;border: 1px solid #f2f2f2 !important;
                    }
                    .text_indent{
                        text-indent:2em;
                    }
                    .code2{
                        max-height: 104px;width:104px
                    }
                    </style>
                <div class="page new-page-css">
                    <!-- <div class="header">
                        <div class="row">
                            <div class="col-xs-3">
                            <span t-field="o.purchase_company.name"/>
                            </div>
                        </div>
                    </div> -->
                    <div class="" style="position: absolute;">
                       
                            <!-- <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"/>
                            <!-- <img class="imgCss" src="./image001.png"/> -->
                    </div>
                    <div class="row unovo-report-purchase-footer" style="padding-top: 50px;">
                        <div class="col-xs-6 text_right">
                            <strong style="font-size: 25px;">QUOTATION</strong>
                            <div>报价单编号:<span t-field="o.name"/></div>
                        </div>
                    </div>
                    <br/>
                    <div class="unovo-report-purchase-name"><span t-field="o.sale_company.name"/></div>
                    <div class="unovo-report-purchase-address ">
                        <div>
                            <div> <a href="WWW.NEOTEL-TECHNOLOGY.COM">WWW.NEOTEL-TECHNOLOGY.COM</a></div>
                            <div style="margin-top:5px;">全国免费电话:400-088-1622</div>
                            <div style="margin-top:25px;">上海:上海市闵行区联航路1588号中心大道西路18号楼 邮编:201112</div>
                            <div style="margin-top:5px;">苏州:苏州市工业园区归家巷48号1幢101室 邮编:215021</div>
                        </div>
                    </div>
                    <table class="unovo-report-purchase-table"  border="1px" cellspacing="0" cellpadding="0">
                        <tr>
                            <th class="padd5" style="min-width:120px;">
                                <strong class="font14" >报价日期</strong>
                            </th>
                            <th class="padd5" style="min-width:195px;">
                                <strong class="font14" >公司名称</strong>
                            </th>
                            <th class="padd5" style="min-width:70px;">
                                <strong class="font14" >联系人</strong>
                            </th>
                            <th class="padd5" style="min-width:130px;">
                                <strong class="font14" >电话</strong>
                            </th>
                            <th class="padd5" style="min-width:65px;">
                                <strong class="font14">运输</strong>
                            </th>
                            <th class="padd5" style="min-width:65px;">
                                <strong class="font14">交货期</strong>
                            </th>
                        </tr>
                        <tr>
                            <td class="text_linehaight">
                                <span t-field="o.last_date" />
                            </td>
                            <td class="text_linehaight">
                                <span t-field="o.partner_id.name" />
                            </td>
                            <td class="text_linehaight">
                                <span t-esc="o.contact_id.name"/>
                            </td>
                            <td class="text_linehaight">
                                <span t-field="o.contact_id.phone" />
                            </td>
                            <td class="text_linehaight">
                                <span t-field="o.transaction_mode.name"/>
                            </td>
                            <td class="text_linehaight">
                                <span t-field="o.delivery_time"/>
                            </td>
                        </tr>
                    </table>
                    <div class="unovo-report-purchase-content" style="padding:10px 0;">
                        <p>
                            <strong class="font14">报价内容:</strong>
                            
                        </p>
                    </div>
                    <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                        <tr>
                            <th class="padd5" style="min-width:75px;">
                                <strong class="font14">产品编码</strong>
                            </th>
                            <th class="padd5" style="min-width:95px;">
                                <strong class="font14">产品名称</strong>
                            </th>
                            <th class="padd5" style="min-width:270px;">
                                <strong class="font14" >产品描述</strong>
                            </th>
                            <th class="padd5" style="min-width:30px;">
                                <strong class="font14" >数量</strong>
                            </th>
                            <th class="padd5" style="min-width:30px;">
                                <strong class="font14" >单位</strong>
                            </th>
                            <th class="padd5" style="min-width:70px;">
                                <strong class="font14">单价</strong>
                            </th>
                            <th class="padd5" style="min-width:65px;">
                                <strong class="font14" >小计</strong>
                            </th>
                        </tr>
                        <tr t-foreach="o.accquotation_line" t-as="line">
                            <td class="text_linehaight" >
                                <span t-field="line.product_id.product_tmpl_id.product_model" />
                            </td>
                            <td class="text_linehaight" >
                                <span t-field="line.product_id.product_tmpl_id.name"/>
                            </td>
                            <td class="text_linehaight">
                                <span t-field="line.product_id.product_tmpl_id.product_describe_cn" />
                            </td>
                            <td class="text_linehaight">
                                <span t-field="line.product_qty"/>
                            </td>

                            <td class="text_linehaight">
                                <span t-field="line.product_uom.name"/>
                            </td>

                            <td class="text_linehaight">
                                <span t-field="line.price_unit" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                            </td>
                            <!-- <td class="text-center">
                                <span t-esc="', '.join(map(lambda x: x.name, line.taxes_id))"/>
                            </td> -->
                            <td class="text_linehaight">
                                <!-- <span t-esc="'{:.2f}'.format(round(line.price_unit*line.product_qty,2))" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/> -->
                                <span t-esc="line.price_unit*line.product_qty" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                            </td>
                        </tr>
                    </table>
                    <br/>
                    <table cellspacing="3" class="total-css"  align="right">
                        <tr>
                            <td style="width:50%;">
                                小计(<span t-field="o.currency_id.name" />):
                            </td>
                            <td >
                                <span t-esc="o.amount_untaxed" style="min-width:80px;" 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-about" cellspacing="0" cellpadding="0">
                        <!-- <tr>
                                <th colspan="3" class="text-center">
                                    <strong>Other Comments or Special Instructions</strong>
                                </th>
                            </tr> -->
                           
                            <tr>
                                <td style="width: 15%;"></td>
                                <td class="interested-css">
                                  <div style="text-align:center;line-height: 20px;">以上是您感兴趣的产品资料,希望对您的工作带来方便,您还可以浏览</div>
                                  <div style="text-align:center;line-height: 20px;"><a href="">http://www.neotel-technology.com</a> 获取其他产品信息。</div>
                                </td>
                                <td style="width: 15%;"></td>
                            </tr>
                    </table>
                    <br/>
                    <br/>
                    <div style="position: relative;">
                        <div style="width: 45%;display: inline-block;font-size: 14px;">
                            <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <p style="padding-left:5px;">附注:</p>
                                            <p class="text_indent">1、  以上价格为<span t-field="o.note1"/></p>
                                            <p class="text_indent">2、  交货周期为收到预付款后<span t-field="o.delivery_time"/></p>
                                            <p class="text_indent">3、  付款方式:<span t-field="o.transaction_rule"/></p>
                                            <p class="text_indent">4、<span t-field="o.note4"/></p>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div style="display: inline-block;font-size: 14px;position: absolute;right:120px;top: 5px;">
                            <table style="width: 110px;" class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <div class="" style="background: #f8f8f8;padding: 2px 4px;" >
                                                <p style="font-size: 14px;font-family:'DengXian';line-height: 20px;" class="">如果您对报价单有任何问题,可以直接联系微信客服:</p>
                                            </div>
                                        </td>
                                    </tr>
                            </table>
                        </div>
                        <div style="display: inline-block;font-size: 14px;position: absolute;right: 0;">
                            <img t-att-src="'data:image/png;base64,%s' % qr_code" class="code2"/>
                            <!-- <img src="./code.png" class="code2"/> -->
                        </div>
                    </div>
                    <br/>
                    <br/>
                    <br/>
                    <!-- <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>