<commit_before><?xml version="1.0" encoding="UTF-8" ?>
<!-- © 2016 ClearCorp
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->

<openerp>
    <data>
        <!-- sale.order.report -->
        <record id="view_sale order_report" model="ir.ui.view">
            <field name="name">view.sale.order.report</field>
            <field name="inherit_id" ref="sale.report_saleorder_document"/>
            <field name="priority" eval="50" />
            <field name="type">qweb</field>
            <field name="arch" type="xml"> 
                <xpath expr="//t/t[@t-call='report.external_layout']" position="replace">
                    <t t-call="sale_order_report.sale_layout">
                        <t t-if="doc.partner_id.parent_id">
                            <t t-set="customer" t-value="doc.partner_id.parent_id"/>
                            <t t-set="contact" t-value="doc.partner_id"/>
                        </t> 
                        <t t-if="not doc.partner_id.parent_id">
                            <t t-set="customer" t-value="doc.partner_id"/>
                            <t t-set="contact" t-value="false"/>
                        </t>
                        <div class="page">
                            <div class="row" style="font-size:130%">
                                <div class="col-xs-12 mb8">
                                    <b>Customer: <span t-field="customer.name"/></b>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-3">
                                    <t t-if="customer.ref"><span class="fa fa-check-square-o" style="width: 14px; text-align: center; margin-right: 3px" /><span t-field="customer.ref"/><br /></t>
                                    <t t-if="contact"><span class="fa fa-user" style="width: 14px; text-align: center; margin-right: 3px" /><span t-field="contact.name"/><br /></t>
                                    <t t-if="doc.partner_id.phone"><span class="fa fa-phone" style="width: 14px; text-align: center; margin-right: 3px" /><span t-field="doc.partner_id.phone"/><br /></t>
                                    <t t-if="doc.partner_id.email"><span class="fa fa-envelope-o" style="width: 14px; text-align: center; margin-right: 3px" /><span t-field="doc.partner_id.email"/><br /></t>
                                </div>
                                <div class="col-xs-5">
                                    <t t-if="doc.partner_shipping_id == doc.partner_invoice_id">
                                        <span class="fa fa-map-marker" style="width: 14px; text-align: center; margin-right: 3px" /><t t-if="doc.partner_invoice_id.street"><span t-field="doc.partner_invoice_id.street" /><br /></t>
                                        <t t-if="doc.partner_invoice_id.street2"><span style="margin-left: 17px" t-field="doc.partner_invoice_id.street2" /><br /></t>
                                        <t t-if="doc.partner_invoice_id.zip or doc.partner_invoice_id.city">
                                            <t t-if="doc.partner_invoice_id.zip">
                                                <span style="margin-left: 17px" t-field="doc.partner_invoice_id.zip" /> 
                                            </t>
                                            <t t-if="doc.partner_invoice_id.city">
                                                <span t-att-style="not doc.partner_invoice_id.zip and 'margin-left: 17px;' or ''" t-field="doc.partner_invoice_id.city" /> 
                                            </t><br />
                                        </t>
                                        <t t-if="doc.partner_invoice_id.state_id or doc.partner_invoice_id.country_id">
                                            <t t-if="doc.partner_invoice_id.state_id">
                                                <span style="margin-left: 17px" t-field="doc.partner_invoice_id.state_id.name" /><t t-if="doc.partner_invoice_id.country_id">, </t>
                                            </t>
                                            <t t-if="doc.partner_invoice_id.country_id">
                                                <span t-att-style="not doc.partner_invoice_id.state_id and 'margin-left: 17px;' or ''" t-field="doc.partner_invoice_id.country_id.code" /> 
                                            </t>
                                        </t>
                                   </t>
                                   <t t-if="doc.partner_shipping_id != doc.partner_invoice_id">
                                       <b><span>Invoice address</span></b><br></br>
                                       <span class="fa fa-file-text" style="width: 14px; text-align: center; margin-right: 3px" /><t t-if="doc.partner_invoice_id.street"><span t-field="doc.partner_invoice_id.street" /><br /></t>
                                       <t t-if="doc.partner_invoice_id.street2"><span style="margin-left: 17px" t-field="doc.partner_invoice_id.street2" /><br /></t>
                                       <t t-if="doc.partner_invoice_id.zip or doc.partner_invoice_id.city">
                                           <t t-if="doc.partner_invoice_id.zip">
                                               <span style="margin-left: 17px" t-field="doc.partner_invoice_id.zip" /> 
                                           </t>
                                           <t t-if="doc.partner_invoice_id.city">
                                                <span t-att-style="not doc.partner_invoice_id.zip and 'margin-left: 17px;' or ''" t-field="doc.partner_invoice_id.city" /> 
                                           </t><br />
                                        </t>
                                        <t t-if="doc.partner_invoice_id.state_id or doc.partner_invoice_id.country_id">
                                            <t t-if="doc.partner_invoice_id.state_id">
                                                <span style="margin-left: 17px" t-field="doc.partner_invoice_id.state_id.name" /><t t-if="doc.partner_invoice_id.country_id">, </t>
                                            </t>
                                            <t t-if="doc.partner_invoice_id.country_id">
                                                <span t-att-style="not doc.partner_invoice_id.state_id and 'margin-left: 17px;' or ''" t-field="doc.partner_invoice_id.country_id.code" /> 
                                            </t>
                                        </t>
                                        <br />
                                        <b><span>Shipping address</span></b><br></br>
                                       <span class="fa fa-truck" style="width: 14px; text-align: center; margin-right: 3px" /><t t-if="doc.partner_shipping_id.street"><span t-field="doc.partner_shipping_id.street" /><br /></t>
                                       <t t-if="doc.partner_shipping_id.street2"><span style="margin-left: 17px" t-field="doc.partner_shipping_id.street2" /><br /></t>
                                       <t t-if="doc.partner_shipping_id.zip or doc.partner_shipping_id.city">
                                           <t t-if="doc.partner_invoice_id.zip">
                                               <span style="margin-left: 17px" t-field="doc.partner_shipping_id.zip" /> 
                                           </t>
                                           <t t-if="doc.partner_shipping_id.city">
                                                <span t-att-style="not doc.partner_shipping_id.zip and 'margin-left: 17px;' or ''" t-field="doc.partner_shipping_id.city" /> 
                                           </t><br />
                                        </t>
                                        <t t-if="doc.partner_shipping_id.state_id or doc.partner_shipping_id.country_id">
                                            <t t-if="doc.partner_shipping_id.state_id">
                                                <span style="margin-left: 17px" t-field="doc.partner_shipping_id.state_id.name" /><t t-if="doc.partner_shipping_id.country_id">, </t>
                                            </t>
                                            <t t-if="doc.partner_shipping_id.country_id">
                                                <span t-att-style="not doc.partner_shipping_id.state_id and 'margin-left: 17px;' or ''" t-field="doc.partner_shipping_id.country_id.code" /> 
                                            </t>
                                        </t>
                                   </t>
                                </div>
                                <div class="col-xs-4">
                                    <t t-if="doc.client_order_ref"><b>Reference: </b><span t-field="doc.client_order_ref"/><br /></t>
                                    <t t-if="doc.origin"><b>Source: </b><span t-field="doc.origin"/><br /></t>
                                    <t t-if="'incoterm' in doc._columns and doc.incoterm"><b>Incoterm: </b><span t-field="doc.incoterm"/><br/></t>
                                    <t t-if="doc.project_id"><b>Contract: </b><span t-field="doc.project_id.name"/><br /></t>
                                </div>
                            </div>
    
                            <table class="table table-condensed mt8 mb0">
                                <thead>
                                    <tr style="min-height:50px">
                                        <th>Quant.</th>
                                        <th width="100%">Description</th>
                                        <th>Tax</th>
                                        <th class="text-right">Unit Price</th>
                                        <th class="text-right" groups="sale.group_discount_per_so_line" t-if="doc.amount_discounted != 0.0">Disc.</th>
                                        <th class="text-right">Amount</th>
                                    </tr>
                                </thead>
                                <tbody class="invoice_tbody">
                                    <tr t-foreach="doc.order_line" t-as="l">
                                        <td style="white-space: nowrap">
                                            <span t-esc="'{:,.16g}'.format(l.product_uom_qty)"/>
                                            <span t-field="l.product_uom" groups="product.group_uom"/>
                                        </td>
                                        <td>
                                            <span t-field="l.name"/>
                                        </td>
                                        <td style="white-space: nowrap">
                                            <t t-if="l.tax_id">
                                                <span t-esc="', '.join(map(lambda x: x.name, l.tax_id))"/>
                                            </t>
                                            <t t-if="not l.tax_id">
                                                XMT
                                            </t>
                                        </td>
                                        <td class="text-right" style="white-space: nowrap">
                                            <span t-field="l.price_unit" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/>
                                        </td>
                                        <td class="text-right" groups="sale.group_discount_per_so_line" t-if="doc.amount_discounted != 0.0"><span t-field="l.discount"/>%</td>
                                        <td class="text-right" style="white-space: nowrap">
                                            <span t-field="l.price_subtotal" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <div class="row" style="margin: none;">
                                <div class="col-xs-8" style="vertical-align: top; page-break-inside:auto;padding-right: 30px">
                                    <p t-if="doc.note" style="padding: 15px 25px 15px 25px; background-color: #EEEEEE; margin-top: 16px; page-break-inside:avoid">
                                        <strong>Terms and Conditions:</strong>
                                        <span t-field="doc.note"/>
                                    </p>
                                    <p t-if="doc.payment_term_id.note" style="padding: 15px 25px 15px 25px; background-color: #EEEEEE; margin-top: 16px; page-break-inside:avoid">
                                        <strong>Payment Term:</strong>
                                        <span t-field="doc.payment_term_id.note"/>
                                    </p>
                                    <p t-if="doc.fiscal_position_id.note" style="padding: 15px 25px 15px 25px; background-color: #EEEEEE; margin-top: 16px; page-break-inside:avoid">
                                        <strong>Fiscal Position Remark:</strong>
                                        <span t-field="doc.fiscal_position_id.note"/>
                                    </p>
                                </div>
                                <div class="col-xs-4" style="padding: none">
                                    <table class="table table-condensed mt0" style="width: auto; float: right; page-break-inside:avoid">
                                        <tr class="border-black text-right" style="white-space: nowrap">
                                            <td t-att-colspan="(doc.amount_discounted != 0.0) and '5' or '4'" style="padding-left: 24px; padding-right: 15px">
                                                <b>Total Without Taxes</b>
                                            </td>
                                            <td>
                                                <b><span t-field="doc.amount_untaxed_not_discounted" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/></b>
                                            </td>
                                        </tr>
                                        <tr t-if="doc.amount_discounted != 0.0" class="text-right" style="white-space: nowrap; border: none">
                                            <td colspan="5" style="padding-left: 24px; padding-right: 15px">
                                                Discount (<span t-field="doc.order_discount" />%)
                                            </td>
                                            <td>
                                                <span t-field="doc.amount_discounted" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/>
                                            </td>
                                        </tr>
                                        <t t-if="doc.amount_tax != 0.0">
                                            <tr class="text-right" style="white-space: nowrap; border: none">
                                                <td t-att-colspan="(doc.amount_discounted != 0.0) and '5' or '4'" style="padding-left: 24px; padding-right: 15px">
                                                    Taxes
                                                </td>
                                                <td t-att-colspan="(doc.amount_discounted != 0.0) and '5' or '4'" style="padding-left: 24px; padding-right: 15px">
                                                    <span t-field="doc.amount_tax" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/>
                                                </td>
                                            </tr>
                                        </t>
                                        <t t-if="doc.amount_tax == 0.0">
                                            <tr class="text-right" style="white-space: nowrap; border: none">
                                                <td t-att-colspan="(doc.amount_discounted != 0.0) and '5' or '4'" style="padding-left: 24px; padding-right: 15px">
                                                    Taxes
                                                </td>
                                                <td>
                                                    <span t-field="doc.amount_tax" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/>
                                                </td>
                                            </tr>
                                        </t>
                                        <tr class="text-right" style="white-space: nowrap; font-size: 120%">
                                            <td t-att-colspan="(doc.amount_discounted != 0.0) and '5' or '4'" style="padding-left: 24px; padding-right: 15px; border-top: 1px solid black">
                                                <b>Total</b>
                                            </td>
                                            <td style="border-top: 1px solid black">
                                                <b><span t-field="doc.amount_total" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/></b>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </t>
                </xpath>
           </field>
       </record>
    </data>
</openerp>
<commit_msg>[FIX] - sale_order_report: Removed discount % from report.<commit_after><?xml version="1.0" encoding="UTF-8" ?>
<!-- © 2016 ClearCorp
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->

<openerp>
    <data>
        <!-- sale.order.report -->
        <record id="view_sale order_report" model="ir.ui.view">
            <field name="name">view.sale.order.report</field>
            <field name="inherit_id" ref="sale.report_saleorder_document"/>
            <field name="priority" eval="50" />
            <field name="type">qweb</field>
            <field name="arch" type="xml"> 
                <xpath expr="//t/t[@t-call='report.external_layout']" position="replace">
                    <t t-call="sale_order_report.sale_layout">
                        <t t-if="doc.partner_id.parent_id">
                            <t t-set="customer" t-value="doc.partner_id.parent_id"/>
                            <t t-set="contact" t-value="doc.partner_id"/>
                        </t> 
                        <t t-if="not doc.partner_id.parent_id">
                            <t t-set="customer" t-value="doc.partner_id"/>
                            <t t-set="contact" t-value="false"/>
                        </t>
                        <div class="page">
                            <div class="row" style="font-size:130%">
                                <div class="col-xs-12 mb8">
                                    <b>Customer: <span t-field="customer.name"/></b>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-3">
                                    <t t-if="customer.ref"><span class="fa fa-check-square-o" style="width: 14px; text-align: center; margin-right: 3px" /><span t-field="customer.ref"/><br /></t>
                                    <t t-if="contact"><span class="fa fa-user" style="width: 14px; text-align: center; margin-right: 3px" /><span t-field="contact.name"/><br /></t>
                                    <t t-if="doc.partner_id.phone"><span class="fa fa-phone" style="width: 14px; text-align: center; margin-right: 3px" /><span t-field="doc.partner_id.phone"/><br /></t>
                                    <t t-if="doc.partner_id.email"><span class="fa fa-envelope-o" style="width: 14px; text-align: center; margin-right: 3px" /><span t-field="doc.partner_id.email"/><br /></t>
                                </div>
                                <div class="col-xs-5">
                                    <t t-if="doc.partner_shipping_id == doc.partner_invoice_id">
                                        <span class="fa fa-map-marker" style="width: 14px; text-align: center; margin-right: 3px" /><t t-if="doc.partner_invoice_id.street"><span t-field="doc.partner_invoice_id.street" /><br /></t>
                                        <t t-if="doc.partner_invoice_id.street2"><span style="margin-left: 17px" t-field="doc.partner_invoice_id.street2" /><br /></t>
                                        <t t-if="doc.partner_invoice_id.zip or doc.partner_invoice_id.city">
                                            <t t-if="doc.partner_invoice_id.zip">
                                                <span style="margin-left: 17px" t-field="doc.partner_invoice_id.zip" /> 
                                            </t>
                                            <t t-if="doc.partner_invoice_id.city">
                                                <span t-att-style="not doc.partner_invoice_id.zip and 'margin-left: 17px;' or ''" t-field="doc.partner_invoice_id.city" /> 
                                            </t><br />
                                        </t>
                                        <t t-if="doc.partner_invoice_id.state_id or doc.partner_invoice_id.country_id">
                                            <t t-if="doc.partner_invoice_id.state_id">
                                                <span style="margin-left: 17px" t-field="doc.partner_invoice_id.state_id.name" /><t t-if="doc.partner_invoice_id.country_id">, </t>
                                            </t>
                                            <t t-if="doc.partner_invoice_id.country_id">
                                                <span t-att-style="not doc.partner_invoice_id.state_id and 'margin-left: 17px;' or ''" t-field="doc.partner_invoice_id.country_id.code" /> 
                                            </t>
                                        </t>
                                   </t>
                                   <t t-if="doc.partner_shipping_id != doc.partner_invoice_id">
                                       <b><span>Invoice address</span></b><br></br>
                                       <span class="fa fa-file-text" style="width: 14px; text-align: center; margin-right: 3px" /><t t-if="doc.partner_invoice_id.street"><span t-field="doc.partner_invoice_id.street" /><br /></t>
                                       <t t-if="doc.partner_invoice_id.street2"><span style="margin-left: 17px" t-field="doc.partner_invoice_id.street2" /><br /></t>
                                       <t t-if="doc.partner_invoice_id.zip or doc.partner_invoice_id.city">
                                           <t t-if="doc.partner_invoice_id.zip">
                                               <span style="margin-left: 17px" t-field="doc.partner_invoice_id.zip" /> 
                                           </t>
                                           <t t-if="doc.partner_invoice_id.city">
                                                <span t-att-style="not doc.partner_invoice_id.zip and 'margin-left: 17px;' or ''" t-field="doc.partner_invoice_id.city" /> 
                                           </t><br />
                                        </t>
                                        <t t-if="doc.partner_invoice_id.state_id or doc.partner_invoice_id.country_id">
                                            <t t-if="doc.partner_invoice_id.state_id">
                                                <span style="margin-left: 17px" t-field="doc.partner_invoice_id.state_id.name" /><t t-if="doc.partner_invoice_id.country_id">, </t>
                                            </t>
                                            <t t-if="doc.partner_invoice_id.country_id">
                                                <span t-att-style="not doc.partner_invoice_id.state_id and 'margin-left: 17px;' or ''" t-field="doc.partner_invoice_id.country_id.code" /> 
                                            </t>
                                        </t>
                                        <br />
                                        <b><span>Shipping address</span></b><br></br>
                                       <span class="fa fa-truck" style="width: 14px; text-align: center; margin-right: 3px" /><t t-if="doc.partner_shipping_id.street"><span t-field="doc.partner_shipping_id.street" /><br /></t>
                                       <t t-if="doc.partner_shipping_id.street2"><span style="margin-left: 17px" t-field="doc.partner_shipping_id.street2" /><br /></t>
                                       <t t-if="doc.partner_shipping_id.zip or doc.partner_shipping_id.city">
                                           <t t-if="doc.partner_invoice_id.zip">
                                               <span style="margin-left: 17px" t-field="doc.partner_shipping_id.zip" /> 
                                           </t>
                                           <t t-if="doc.partner_shipping_id.city">
                                                <span t-att-style="not doc.partner_shipping_id.zip and 'margin-left: 17px;' or ''" t-field="doc.partner_shipping_id.city" /> 
                                           </t><br />
                                        </t>
                                        <t t-if="doc.partner_shipping_id.state_id or doc.partner_shipping_id.country_id">
                                            <t t-if="doc.partner_shipping_id.state_id">
                                                <span style="margin-left: 17px" t-field="doc.partner_shipping_id.state_id.name" /><t t-if="doc.partner_shipping_id.country_id">, </t>
                                            </t>
                                            <t t-if="doc.partner_shipping_id.country_id">
                                                <span t-att-style="not doc.partner_shipping_id.state_id and 'margin-left: 17px;' or ''" t-field="doc.partner_shipping_id.country_id.code" /> 
                                            </t>
                                        </t>
                                   </t>
                                </div>
                                <div class="col-xs-4">
                                    <t t-if="doc.client_order_ref"><b>Reference: </b><span t-field="doc.client_order_ref"/><br /></t>
                                    <t t-if="doc.origin"><b>Source: </b><span t-field="doc.origin"/><br /></t>
                                    <t t-if="'incoterm' in doc._columns and doc.incoterm"><b>Incoterm: </b><span t-field="doc.incoterm"/><br/></t>
                                    <t t-if="doc.project_id"><b>Contract: </b><span t-field="doc.project_id.name"/><br /></t>
                                </div>
                            </div>
    
                            <table class="table table-condensed mt8 mb0">
                                <thead>
                                    <tr style="min-height:50px">
                                        <th>Quant.</th>
                                        <th width="100%">Description</th>
                                        <th>Tax</th>
                                        <th class="text-right">Unit Price</th>
                                        <th class="text-right" groups="sale.group_discount_per_so_line" t-if="doc.amount_discounted != 0.0">Disc.</th>
                                        <th class="text-right">Amount</th>
                                    </tr>
                                </thead>
                                <tbody class="invoice_tbody">
                                    <tr t-foreach="doc.order_line" t-as="l">
                                        <td style="white-space: nowrap">
                                            <span t-esc="'{:,.16g}'.format(l.product_uom_qty)"/>
                                            <span t-field="l.product_uom" groups="product.group_uom"/>
                                        </td>
                                        <td>
                                            <span t-field="l.name"/>
                                        </td>
                                        <td style="white-space: nowrap">
                                            <t t-if="l.tax_id">
                                                <span t-esc="', '.join(map(lambda x: x.name, l.tax_id))"/>
                                            </t>
                                            <t t-if="not l.tax_id">
                                                XMT
                                            </t>
                                        </td>
                                        <td class="text-right" style="white-space: nowrap">
                                            <span t-field="l.price_unit" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/>
                                        </td>
                                        <td class="text-right" groups="sale.group_discount_per_so_line" t-if="doc.amount_discounted != 0.0"><span t-field="l.discount"/>%</td>
                                        <td class="text-right" style="white-space: nowrap">
                                            <span t-field="l.price_subtotal" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <div class="row" style="margin: none;">
                                <div class="col-xs-8" style="vertical-align: top; page-break-inside:auto;padding-right: 30px">
                                    <p t-if="doc.note" style="padding: 15px 25px 15px 25px; background-color: #EEEEEE; margin-top: 16px; page-break-inside:avoid">
                                        <strong>Terms and Conditions:</strong>
                                        <span t-field="doc.note"/>
                                    </p>
                                    <p t-if="doc.payment_term_id.note" style="padding: 15px 25px 15px 25px; background-color: #EEEEEE; margin-top: 16px; page-break-inside:avoid">
                                        <strong>Payment Term:</strong>
                                        <span t-field="doc.payment_term_id.note"/>
                                    </p>
                                    <p t-if="doc.fiscal_position_id.note" style="padding: 15px 25px 15px 25px; background-color: #EEEEEE; margin-top: 16px; page-break-inside:avoid">
                                        <strong>Fiscal Position Remark:</strong>
                                        <span t-field="doc.fiscal_position_id.note"/>
                                    </p>
                                </div>
                                <div class="col-xs-4" style="padding: none">
                                    <table class="table table-condensed mt0" style="width: auto; float: right; page-break-inside:avoid">
                                        <tr class="border-black text-right" style="white-space: nowrap">
                                            <td t-att-colspan="(doc.amount_discounted != 0.0) and '5' or '4'" style="padding-left: 24px; padding-right: 15px">
                                                <b>Total Without Taxes</b>
                                            </td>
                                            <td>
                                                <b><span t-field="doc.amount_untaxed_not_discounted" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/></b>
                                            </td>
                                        </tr>
                                        <tr t-if="doc.amount_discounted != 0.0" class="text-right" style="white-space: nowrap; border: none">
                                            <td colspan="5" style="padding-left: 24px; padding-right: 15px">
                                                Discount
                                            </td>
                                            <td>
                                                <span t-field="doc.amount_discounted" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/>
                                            </td>
                                        </tr>
                                        <t t-if="doc.amount_tax != 0.0">
                                            <tr class="text-right" style="white-space: nowrap; border: none">
                                                <td t-att-colspan="(doc.amount_discounted != 0.0) and '5' or '4'" style="padding-left: 24px; padding-right: 15px">
                                                    Taxes
                                                </td>
                                                <td t-att-colspan="(doc.amount_discounted != 0.0) and '5' or '4'" style="padding-left: 24px; padding-right: 15px">
                                                    <span t-field="doc.amount_tax" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/>
                                                </td>
                                            </tr>
                                        </t>
                                        <t t-if="doc.amount_tax == 0.0">
                                            <tr class="text-right" style="white-space: nowrap; border: none">
                                                <td t-att-colspan="(doc.amount_discounted != 0.0) and '5' or '4'" style="padding-left: 24px; padding-right: 15px">
                                                    Taxes
                                                </td>
                                                <td>
                                                    <span t-field="doc.amount_tax" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/>
                                                </td>
                                            </tr>
                                        </t>
                                        <tr class="text-right" style="white-space: nowrap; font-size: 120%">
                                            <td t-att-colspan="(doc.amount_discounted != 0.0) and '5' or '4'" style="padding-left: 24px; padding-right: 15px; border-top: 1px solid black">
                                                <b>Total</b>
                                            </td>
                                            <td style="border-top: 1px solid black">
                                                <b><span t-field="doc.amount_total" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;doc.currency_id&quot;}"/></b>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </t>
                </xpath>
           </field>
       </record>
    </data>
</openerp>

{'fraction_non_alphanumeric': 0.1285722106646228, 'fraction_numerical': 0.009909120770831052, 'mean_word_length': 0.9459358687546607, 'pattern_counts': {'":': 0, '<': 616, '<?xml version=': 2, '>': 616, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 528, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '925063', 'n_tokens_mistral': 9342, 'n_tokens_neox': 8767, 'n_words': 1447}