accen_quotation_report_view.xml 17.2 KB
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
    <template id="accten_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>Quotation No.:<span t-field="o.name"/></p>
                        </div>
                    </div>
                    <br/>
                    <div class="unovo-report-purchase-title">NEOTEL TECHNOLOGY CO., LTD.</div>
                    <div class="unovo-report-purchase-content">
                        <p>
                            <p>Toll free:400-600-1622</p>
                            <p>Building 18, No.1588 Lianhang Road, Minhang District, Shanghai, PRC</p>
                            <p>TEL: +86-21-62208085 +86-21-62208090 FAX: 86-21-51026636</p>
                        </p>
                    </div>
                    <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                        <tr>
                            <th class="text-center" >
                                <strong>DATE</strong>
                            </th>
                            <th class="text-center" >
                                <strong>COMPANY</strong>
                            </th>
                            <th class="text-center" >
                                <strong>CONTACT</strong>
                            </th>
                            <th class="text-center">
                                <strong>TEL</strong>
                            </th>
                            <th class="text-center">
                                <strong>SALES</strong>
                            </th>
                            <th class="text-center">
                                <strong>TERMS</strong>
                            </th>
                            <th class="text-center">
                                <strong>LEAD TIME</strong>
                            </th>
                        </tr>
                        <tr>
                            <td class="text-center">
                                <span t-esc="total.get('today', '')"/>
                            </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.user_id.name"/>
                            </td>
                            <td class="text-center">
                                <span t-field="o.transaction_mode.name"/>
                            </td>
                            <td class="text-center">
                                <span t-field="o.delivery_time"/>
                            </td>
                            <!-- <td class="text-center">
                                <span t-field="o.transaction_rule"/>
                            </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>
                            PRODUCT
                        </p>
                    </div>
                    <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                        <tr>
                            <th class="text-center" style="width:20%;">
                                <strong>PART NO.</strong>
                            </th>
                            <th class="text-center" style="width:20%;">
                                <strong>NAME</strong>
                            </th>
                            <th style="width:25%;" class="text-center" >
                                <strong>DESCRIPTION</strong>
                            </th>
                            <th style="width:10%;" class="text-center" >
                                <strong>QTY</strong>
                            </th>
                            <th style="width:10%;" class="text-center" >
                                <strong>UNIT</strong>
                            </th>
                            <th style="width:10%;" class="text-center" >
                                <strong>UNIT(<span t-field="o.currency_id.name"/>)</strong>
                            </th>
                            <th style="width:5%;" class="text-center">
                                <strong>SUBTOTAL(<span t-field="o.currency_id.name"/>)</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.en_name"/>
                            </td>
                            <td style="text-align:left;">
                                <span t-field="line.product_id.product_tmpl_id.product_describe_en"/>
                            </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="', '.join(map(lambda x: x.name, line.taxes_id))"/>
                            </td> -->
                            <td class="text-center">
                                <!-- <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>
                    <table cellspacing="3" style="width:25%;" align="right">
                        <tr>
                            <td style="width:50%;">
                                Subtotal(<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>
                                Tax:
                            </td>
                            <td >
                                <span t-esc="o.amount_tax" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Discount(<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>
                                Freight(<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>
                                Total(<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 - o.discount + o.ship_fee" 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">Thank You for Your Inquiry!
                                    For more information, please visit our website at
                                    </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>
                                <th colspan="3" class="text-center">
                                    <strong>Other Comments or Special Instructions</strong>
                                </th>
                            </tr> -->
                            <tr>
                                <td>
                                   <p>NOTE:</p>
                                        <p style="text-indent:2em;">1 All prices in <span t-field="o.currency_id.name"/></p>
                                        <p style="text-indent:2em;">2 Delivery terms: <span t-field="o.transaction_mode.name"/></p>
                                        <p style="text-indent:2em;">3 Lead time: <span t-field="o.delivery_time"/> after prepayment </p>
                                        <p style="text-indent:2em;">4 Payment terms:<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>