<commit_before><html>
<head>
    <style type="text/css">
        ${css}

.list_sale_table {
    border:thin solid #E3E4EA;
    text-align:center;
    border-collapse: collapse;
}

.list_sale_table td {
    border-top:thin solid #EEEEEE;
    text-align:right;
    font-size:12;
    padding-right:3px;
    padding-left:3px;
    padding-top:3px;
    padding-bottom:3px;
}

.list_bank_table {
    text-align:center;
    border-collapse: collapse;
}

.list_bank_table td {
    text-align:left;
    font-size:12;
    padding-right:3px;
    padding-left:3px;
    padding-top:3px;
    padding-bottom:3px;
}

.list_bank_table th {
    background-color: #EEEEEE;
    text-align:left;
    font-size:12;
    font-weight:bold;
    padding-right:3px
    padding-left:3px
}

.list_sale_table th {
    background-color: #EEEEEE;
    border: thin solid #000000;
    text-align:center;
    font-size:12;
    font-weight:bold;
    padding-right:3px;
    padding-left:3px;
}

.list_table thead {
    display:table-header-group;
}


.list_tax_table {
}
.list_tax_table td {
    text-align:left;
    font-size:12;
}


.list_table thead {
    display:table-header-group;
}


.list_total_table {
    border-collapse: collapse;
}

.list_total_table td {
    text-align:right;
    font-size:12;
}

.no_bloc {
    border-top: thin solid  #ffffff ;
}


.list_total_table th {
    background-color: #F7F7F7;
    border-collapse: collapse;
}

tfoot.totals tr:first-child td{
    padding-top: 15px;
}

.right_table {
    right: 4cm;
    width:"100%";
}

.std_text {
    font-size:12;
}

.note {
    text-align:left;
    font-size:10;
    border-top:thin solid  #ffffff;
    border-left:thin solid  #ffffff;
    border-right:thin solid  #ffffff;
}


    </style>
</head>
<body>
    <%page expression_filter="entity"/>
    <%
    def carriage_returns(text):
        return text.replace('\n', '<br />')

    %>
    %for order in objects:
    <% setLang(order.partner_id.lang) %>
    <%
      quotation = order.state in ['draft', 'sent']
    %>
    <div class="address">
        <table class="recipient">
            %if order.partner_id.parent_id:
            <tr><td class="name">${order.partner_id.parent_id.name or ''}</td></tr>
            <tr><td>${order.partner_id.title and order.partner_id.title.name or ''} ${order.partner_id.name }</td></tr>
            %else:
            <tr><td class="name">${order.partner_id.title and order.partner_id.title.name or ''} ${order.partner_id.name }</td></tr>
            %endif
            %for part in order.partner_id.contact_address.split("\n")[1:]:
                %if part:
                <tr><td>${part}</td></tr>
                %endif
            %endfor
        </table>

        <table class="shipping">
            <tr><td class="address_title">${_("Shipping address:")}</td></tr>
            %if order.partner_id.parent_id:
            <tr><td>${order.partner_shipping_id.parent_id.name or ''}</td></tr>
            <tr><td>${order.partner_shipping_id.title and order.partner_shipping_id.title.name or ''} ${order.partner_shipping_id.name }</td></tr>
            %else:
            <tr><td>${order.partner_shipping_id.title and order.partner_shipping_id.title.name or ''} ${order.partner_shipping_id.name }</td></tr>
            %endif
            %for part in order.partner_shipping_id.contact_address.split("\n")[1:]:
                %if part:
                <tr><td>${part}</td></tr>
                %endif
            %endfor
        </table>

        <table class="invoice">
            <tr><td class="address_title">${_("Invoice address:")}</td></tr>
            %if order.partner_invoice_id.parent_id:
            <tr><td>${order.partner_invoice_id.parent_id.name or ''}</td></tr>
            <tr><td>${order.partner_invoice_id.title and order.partner_invoice_id.title.name or ''} ${order.partner_invoice_id.name }</td></tr>
            %else:
            <tr><td>${order.partner_invoice_id.title and order.partner_invoice_id.title.name or ''} ${order.partner_invoice_id.name }</td></tr>
            %endif
            %for part in order.partner_invoice_id.contact_address.split("\n")[1:]:
                %if part:
                <tr><td>${part}</td></tr>
                %endif
            %endfor
        </table>
    </div>
    <div>

    %if order.note1:
        <p class="std_text"> ${order.note1| n} </p>
    %endif
    </div>

    <h1 style="clear:both;">${quotation and _(u'Quotation N°') or _(u'Order N°') } ${order.name}</h1>

    <table class="basic_table" width="100%">
        <tr>
            <td style="font-weight:bold;">${quotation and _("Date Ordered") or _("Quotation Date")}</td>
            <td style="font-weight:bold;">${_("Your Reference")}</td>
            <td style="font-weight:bold;">${_("Salesman")}</td>
            <td style="font-weight:bold;">${_('Payment Term')}</td>
        </tr>
        <tr>
            <td>${formatLang(order.date_order, date=True)}</td>
            <td>${order.client_order_ref or ''}</td>
            <td>${order.user_id and order.user_id.name or ''}</td>
            <td>${order.payment_term and order.payment_term.name or ''}</td>
        </tr>
    </table>

    <table class="list_sale_table" width="100%" style="margin-top: 20px;">
        <thead>
            <tr>
                <th>${_("Description")}</th>
                <th class="amount">${_("Quantity")}</th>
                <th class="amount">${_("UoM")}</th>
                <th class="amount">${_("Unit Price")}</th>
                <th>${_("VAT")}</th>
                <th class="amount">${_("Disc.(%)")}</th>
                <th class="amount">${_("Price")}</th>
            </tr>
        </thead>
        <tbody>
            %for line in order.order_line:
                <tr class="line">
                    <td style="text-align:left; " >${ line.name }</td>
                    <td class="amount" width="7.5%">${ formatLang(line.product_uos and line.product_uos_qty or line.product_uom_qty) }</td><commit_msg>[IMP] use payment term note instead of name<commit_after><html>
<head>
    <style type="text/css">
        ${css}

.list_sale_table {
    border:thin solid #E3E4EA;
    text-align:center;
    border-collapse: collapse;
}

.list_sale_table td {
    border-top:thin solid #EEEEEE;
    text-align:right;
    font-size:12;
    padding-right:3px;
    padding-left:3px;
    padding-top:3px;
    padding-bottom:3px;
}

.list_bank_table {
    text-align:center;
    border-collapse: collapse;
}

.list_bank_table td {
    text-align:left;
    font-size:12;
    padding-right:3px;
    padding-left:3px;
    padding-top:3px;
    padding-bottom:3px;
}

.list_bank_table th {
    background-color: #EEEEEE;
    text-align:left;
    font-size:12;
    font-weight:bold;
    padding-right:3px
    padding-left:3px
}

.list_sale_table th {
    background-color: #EEEEEE;
    border: thin solid #000000;
    text-align:center;
    font-size:12;
    font-weight:bold;
    padding-right:3px;
    padding-left:3px;
}

.list_table thead {
    display:table-header-group;
}


.list_tax_table {
}
.list_tax_table td {
    text-align:left;
    font-size:12;
}


.list_table thead {
    display:table-header-group;
}


.list_total_table {
    border-collapse: collapse;
}

.list_total_table td {
    text-align:right;
    font-size:12;
}

.no_bloc {
    border-top: thin solid  #ffffff ;
}


.list_total_table th {
    background-color: #F7F7F7;
    border-collapse: collapse;
}

tfoot.totals tr:first-child td{
    padding-top: 15px;
}

.right_table {
    right: 4cm;
    width:"100%";
}

.std_text {
    font-size:12;
}

.note {
    text-align:left;
    font-size:10;
    border-top:thin solid  #ffffff;
    border-left:thin solid  #ffffff;
    border-right:thin solid  #ffffff;
}


    </style>
</head>
<body>
    <%page expression_filter="entity"/>
    <%
    def carriage_returns(text):
        return text.replace('\n', '<br />')

    %>
    %for order in objects:
    <% setLang(order.partner_id.lang) %>
    <%
      quotation = order.state in ['draft', 'sent']
    %>
    <div class="address">
        <table class="recipient">
            %if order.partner_id.parent_id:
            <tr><td class="name">${order.partner_id.parent_id.name or ''}</td></tr>
            <tr><td>${order.partner_id.title and order.partner_id.title.name or ''} ${order.partner_id.name }</td></tr>
            %else:
            <tr><td class="name">${order.partner_id.title and order.partner_id.title.name or ''} ${order.partner_id.name }</td></tr>
            %endif
            %for part in order.partner_id.contact_address.split("\n")[1:]:
                %if part:
                <tr><td>${part}</td></tr>
                %endif
            %endfor
        </table>

        <table class="shipping">
            <tr><td class="address_title">${_("Shipping address:")}</td></tr>
            %if order.partner_id.parent_id:
            <tr><td>${order.partner_shipping_id.parent_id.name or ''}</td></tr>
            <tr><td>${order.partner_shipping_id.title and order.partner_shipping_id.title.name or ''} ${order.partner_shipping_id.name }</td></tr>
            %else:
            <tr><td>${order.partner_shipping_id.title and order.partner_shipping_id.title.name or ''} ${order.partner_shipping_id.name }</td></tr>
            %endif
            %for part in order.partner_shipping_id.contact_address.split("\n")[1:]:
                %if part:
                <tr><td>${part}</td></tr>
                %endif
            %endfor
        </table>

        <table class="invoice">
            <tr><td class="address_title">${_("Invoice address:")}</td></tr>
            %if order.partner_invoice_id.parent_id:
            <tr><td>${order.partner_invoice_id.parent_id.name or ''}</td></tr>
            <tr><td>${order.partner_invoice_id.title and order.partner_invoice_id.title.name or ''} ${order.partner_invoice_id.name }</td></tr>
            %else:
            <tr><td>${order.partner_invoice_id.title and order.partner_invoice_id.title.name or ''} ${order.partner_invoice_id.name }</td></tr>
            %endif
            %for part in order.partner_invoice_id.contact_address.split("\n")[1:]:
                %if part:
                <tr><td>${part}</td></tr>
                %endif
            %endfor
        </table>
    </div>
    <div>

    %if order.note1:
        <p class="std_text"> ${order.note1| n} </p>
    %endif
    </div>

    <h1 style="clear:both;">${quotation and _(u'Quotation N°') or _(u'Order N°') } ${order.name}</h1>

    <table class="basic_table" width="100%">
        <tr>
            <td style="font-weight:bold;">${quotation and _("Date Ordered") or _("Quotation Date")}</td>
            <td style="font-weight:bold;">${_("Your Reference")}</td>
            <td style="font-weight:bold;">${_("Salesman")}</td>
            <td style="font-weight:bold;">${_('Payment Term')}</td>
        </tr>
        <tr>
            <td>${formatLang(order.date_order, date=True)}</td>
            <td>${order.client_order_ref or ''}</td>
            <td>${order.user_id and order.user_id.name or ''}</td>
            <td>${order.payment_term and order.payment_term.note or ''}</td>
        </tr>
    </table>

    <table class="list_sale_table" width="100%" style="margin-top: 20px;">
        <thead>
            <tr>
                <th>${_("Description")}</th>
                <th class="amount">${_("Quantity")}</th>
                <th class="amount">${_("UoM")}</th>
                <th class="amount">${_("Unit Price")}</th>
                <th>${_("VAT")}</th>
                <th class="amount">${_("Disc.(%)")}</th>
                <th class="amount">${_("Price")}</th>
            </tr>
        </thead>
        <tbody>
            %for line in order.order_line:
                <tr class="line">
                    <td style="text-align:left; " >${ line.name }</td>
                    <td class="amount" width="7.5%">${ formatLang(line.product_uos and line.product_uos_qty or line.product_uom_qty) }</td>
{'fraction_non_alphanumeric': 0.17624457066488472, 'fraction_numerical': 0.010357500835282325, 'mean_word_length': 2.289285714285714, 'pattern_counts': {'":': 0, '<': 259, '<?xml version=': 0, '>': 259, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2876260', 'n_tokens_mistral': 4361, 'n_tokens_neox': 4191, 'n_words': 672}