neotel_contract_report_view.xml 16.1 KB
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
    <template id="neotel_report_contract">
        <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-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;
                    }
                    .unovo-report-purchase-footer p {
                    margin:5px 0px;
                    }
                    .unovo-report-purchase-table p {
                    margin:5px 0px;
                    }
                </style>
                <div class="page">
                    <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">合同 CONTRACT</div>
                    <br/>
                    <!-- <div style="width:100%;"> -->
                    <div style="width:30%;float:right;">
                    <table class="unovo-report-purchase-table" border="1px" cellspacing="0" cellpadding="0">
                        <tr>
                            <td colspan="4" class="text-center">
                                Contract No.<span t-field="o.name"/>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" class="text-center">
                                Date:<span t-esc="total.get('today', '')"/>
                            </td>
                        </tr>
                    </table>
                    </div>
                    <br/>
                    <br/>
                    <br/>
                    <!-- <div style="clear:both;float:left; width:50%"> -->
                    <div class="row unovo-report-purchase-footer" style="clear: both">
                        <div class="col-xs-6" style="width: 50%;text-align: left;">
                            <strong>买方:</strong><br/>
                            <!-- <span t-field="o.purchase_company.name"/> -->
                            <span t-field="o.partner_id.name"/>
                        </div>
                        <div class="col-xs-6">
                            <strong>卖方:</strong><br/>
                            <!-- <span t-field="o.partner_id.name"/> -->
                            <span t-field="o.sale_company.name"/>
                        </div>
                    </div>
                    <!-- </div> -->
                    <!-- <div style="float:right; width:50%"> -->
                    <div class="row unovo-report-purchase-footer">
                        <div class="col-xs-6" style="width: 50%;text-align: left;">
                            <strong>联系人:</strong>
                            <span t-field="o.contact_id.name"/>
                            <p><span t-field="o.partner_id.street"/></p>
                            <p>Tel:<span t-field="o.contact_id.mobile"/> <span t-field="o.partner_id.phone"/></p>
                            <p>Fax:<span t-field="o.contact_id.phone"/></p>
                        </div>
                        <div class="col-xs-6">
                            <strong>联系人:</strong>
                            <span t-field="o.user_id.name"/>
                            <p>上海市闵行区浦江工业区联航路1588号中心大道西路18号</p>
                            <!-- <p>18号</p> -->
                            <p>Tel:86-21-62208085    86-21-62208090</p>
                            <p>Fax:86-21-51026636</p>
                        </div>
                    </div>
                    <!-- </div> -->
                    <br/>
                    <div class="unovo-report-purchase-content">
                        <p>
                            <p>1.本合同由买卖双方签订,其中买方同意按照本合同规定的条款购买,卖方同意按照本合同规定的条款出售本合同中所规定的货物</p>
                        </p>
                        <p>
                            <p>2.商品及技术特性:</p>
                        </p>
                    </div>
                    <br/>
                    <br/>
                    <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>单价(<span t-field="o.pricelist_id.currency_id.name"/>)</strong>
                            </th>
                            <th class="text-center" style="width:5%;">
                                <strong>小计(<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.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="', '.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:20%;" align="right">
                        <tr>
                            <th>
                                合计(<span t-field="o.pricelist_id.currency_id.name"/>)
                            </th>
                            <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>
                    <br/>
                    <br/>
                    <div class="unovo-report-purchase-content">
                        <p>
                            3.合同费用:
                            <p>(1)合同总价【<span t-esc="o.amount_total" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>】元,本合同合计金额大写:人民币<span t-esc="total.get('upper_amount', '')"/>(此价格含<span t-field="o.tax_id.amount"/>%增值税,不含货物的卸货和买方工厂内的就位费。</p>
                        </p>
                        <p>
                            4.交货时间、地点及运输:
                            <p>(1)交货时间:卖方应于收到订单之日起<span t-field="o.delivery_time"/>内发货,并告知买方运单信息。</p>
                            <p>(2)交付地点:<span t-field="o.destination_address"/>【 注:如我方负责运输,通常交货地点为买方指定地点】</p>
                            <p>(3)运输:<span t-field="o.shipping_method"/>,买方签收之日,视为货物已交付买方。</p>
                            <p>(4)货物的所有权在买方支付完全部货款后转移给买方。</p>
                        </p>
                        <p>
                            5.买方在收到货物后【7】日内予以验收的,并签发验收确认单;若【7】日未予验收,视为验收合格。
                        </p>
                        <p>
                            6.支付条款:
                            <p>(1)交易条款:<span t-field="o.transaction_rule"/></p>
                            <p>(2)卖方账号为:
                                <p><span t-field="o.sale_company.name"/></p>
                                <p>开户行:<span t-field="o.sale_company.bank"/> </p>
                                <p>账   号:<span t-field="o.sale_company.bank_number"/></p>
                                <!-- <p>卖方收到全部货款及买方开票信息后,向买方开具增值税专用发票。</p> -->
                                </p>
                        </p>
                        <p>
                            7.违约责任:
                            <p>乙方逾期付款的,应按照每日合同总金额的千分之一支付违约金。</p>
                        </p>
                        <p>
                            8.换货:
                            <p>经买方验收发现货物存在质量问题的,应及时通知卖方,卖方在核实无误后应按以下程序处理:</p>
                            <p>1)若货物生产商为注册于中国国内(为本合同之目的,中国不包含香港、澳门和台湾)的公司,卖方应负责及时换货;</p>
                            <p>2)若货物生产商为注册于中国国外的公司,卖方应负责协调买方向生产商调换货物。</p>
                        </p>
                        <p>
                            9.知识产权:
                            <p>货物中所包含知识产权归卖方所有,买方不得以任何形式将货物中所包含的知识产权(包括但不限于专利权;软件著作权;软件、技术文档、技术规范及/ 或软件的任何数据或程序等商业和技术秘密)向任何第三方明示或暗示地披露、提供或以任何方式加以利用。买方承诺不会通过反向工程的方式获取货物中的知识产权信息。</p>
                        </p>
                        <p>
                            10.备注:
                            <p>(1)本合同壹式贰份,双方各执壹份为凭。本合同将在双方签字后生效。</p>
                            <p>(2)因本合同履行产生争议的,交由卖方所在地人民法院管辖。</p>
                        </p>
                    </div>
                    <br/>
                    <br/>
                    <div class="row unovo-report-purchase-footer">
                        <div class="col-xs-6" style="width: 50%;text-align: left;">
                            <strong>买方代表签名:</strong><br/>
                        </div>
                        <div class="col-xs-6">
                            <strong>卖方代表签名</strong><br/>
                        </div>
                    </div>
                    <br/>
                    <br/>
                    <br/>
                    <div class="row unovo-report-purchase-footer">
                        <div class="col-xs-6" style="width: 50%;text-align: left;">
                            <strong>盖章:</strong>
                        </div>
                        <div class="col-xs-6">
                            <strong>盖章:</strong>
                        </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>