Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <t t-name="purchase.report_purchaseorder_document">
- <style>
- .titulosFondoGris {
- background-color: #c1bfbf;
- margin-top: 15px;
- }
- @media print {
- /* Contenido del fichero print.css */
- input {
- display: none;
- }
- }
- </style>
- <t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
- <div class="page">
- <div class="oe_structure"/>
- <input type="button" onclick="window.print();" value="Imprimir Factura" />
- <div t-attf-class="header o_company_#{o.company_id}_layout">
- <div class="row">
- <div class="col-3 mb4">
- <img t-if="o.company_id.logo" t-att-src="image_data_uri(o.company_id.logo)" t-attf-style="max-height: 80px;" alt="Logo"/>
- </div>
- <div class="col-9 text-right" t-attf-style="margin-top:22px;" t-field="o.company_id.report_header" name="moto">
- <h2 class="text-right" t-if="o.state == 'draft'"><b>Request for Quotation No <span t-field="o.name"/></b></h2>
- <h2 class="text-right" t-if="o.state in ['sent', 'to approve']"><b>Purchase Order No <span t-field="o.name"/></b></h2>
- <h2 class="text-right" t-if="o.state in ['purchase', 'done']"><b>Purchase Order No <span t-field="o.name"/></b></h2>
- <h2 class="text-right" t-if="o.state == 'cancel'"><b>Cancelled Purchase Order No <span t-field="o.name"/></b></h2>
- </div>
- </div>
- <div t-if="o.company_id.logo or o.company_id.report_header" class="row zero_min_height">
- <div class="col-12">
- <div t-attf-style="border-bottom: 1px solid black;"/>
- </div>
- </div>
- <div class="row">
- <div class="col-6" name="company_address">
- <p t-attf-style="background-color: #c1bfbf; margin-top: 15px;"><b>Información General</b></p>
- <p t-attf-style="font-size: 20px;" t-field="o.company_id.partner_id" class="m-0"/>
- <p t-field="o.company_id.partner_id.vat" class="m-0"/>
- <p t-field="o.company_id.partner_id.street" class="m-0"/>
- <p t-field="o.company_id.partner_id.city" class="m-0"/>
- <p t-field="o.company_id.partner_id.country_id" class="m-0"/>
- <div t-if="o.company_id.partner_id.phone">
- <p t-field="o.company_id.partner_id.phone" class="m-0"/>
- <p t-field="o.company_id.partner_id.mobile" class="m-0"/>
- </div>
- <p t-field="o.company_id.partner_id.website" class="m-0"/>
- </div>
- <div class="col-6" name="company_address">
- <p t-attf-style="background-color: #c1bfbf; margin-top: 15px;"><b>Fechas</b></p>
- <p class="m-0" >Fecha de Confirmación: <span t-field="o.date_approve"/></p>
- <p class="m-0" >Fecha de Pedido: <span t-field="o.date_order"/></p>
- <p class="m-0" >Fecha de Entrega: <span t-field="o.date_order"/></p>
- <!--p class="m-0" >Fecha de Entrega: <span t-field="o.order_line.date_planned"/></p-->
- </div>
- </div>
- <div class="row">
- <div class="col-6" name="info_proveedor">
- <p class="titulosFondoGris"><b>Proveedor</b></p>
- <p t-attf-style="font-size: 18px;" t-field="o.partner_id" class="m-0"/>
- <p t-field="o.partner_id.vat" class="m-0"/>
- <p t-field="o.partner_id.street" class="m-0"/>
- <p t-field="o.partner_id.city" class="m-0"/>
- <p t-field="o.partner_id.country_id" class="m-0"/>
- <div t-if="o.partner_id.phone">
- <p t-field="o.partner_id.phone" class="m-0"/>
- <p t-field="o.partner_id.mobile" class="m-0"/>
- </div>
- <p t-field="o.partner_id.website" class="m-0"/>
- </div>
- <div class="col-6" name="company_address">
- <p t-attf-style="background-color: #c1bfbf; margin-top: 15px;"><b>Condiciones de Compra</b></p>
- <p class="m-0" >Tipo de Ubicación de Destino: <span t-field="o.default_location_dest_id_usage"/></p>
- <!--p class="m-0" >Dirección de Envío triangulado: <span t-field="o.dest_address_id"/></p-->
- <p class="m-0" >Entregar a: <span t-field="o.picking_type_id"/></p>
- <p class="m-0" >Forma de pago: <span t-field="o.payment_term_id"/></p>
- </div>
- </div>
- </div>
- <div id="informations" class="row mt32 mb32">
- <div t-if="o.user_id" class="col-3 bm-2">
- <strong>Purchase Representative:</strong>
- <p t-field="o.user_id" class="m-0"/>
- </div>
- <div t-if="o.partner_ref" class="col-3 bm-2">
- <strong>Your Order Reference:</strong>
- <p t-field="o.partner_ref" class="m-0"/>
- </div>
- <div t-if="o.date_order" class="col-3 bm-2">
- <strong>Order Date:</strong>
- <p t-field="o.date_order" class="m-0"/>
- </div>
- </div>
- <div id="linea_productos" class="row">
- <div class="col-12">
- <table class="table table-sm o_main_table">
- <thead>
- <tr>
- <th name="th_item" class="text-center" t-attf-style="background-color: #c1bfbf;"><strong>Item</strong></th>
- <th name="th_codigo" class="text-center" t-attf-style="background-color: #c1bfbf;"><strong>Código</strong></th>
- <th name="th_description" class="text-center" t-attf-style="background-color: #c1bfbf;"><strong>Description</strong></th>
- <th name="th_quantity" class="text-center" t-attf-style="background-color: #c1bfbf;"><strong>Cantidad</strong></th>
- <th name="th_unidades" class="text-center" t-attf-style="background-color: #c1bfbf;"><strong>Unidad</strong></th>
- <th name="th_price_unit" class="text-center" t-attf-style="background-color: #c1bfbf;"><strong>Valor Unitario</strong></th>
- <th name="th_taxes" class="text-center" t-attf-style="background-color: #c1bfbf;"><strong>% IVA</strong></th>
- <th name="th_descuento" class="text-center" t-attf-style="background-color: #c1bfbf;"><strong>% Descuento</strong></th>
- <th name="th_valor_neto" class="text-center" t-attf-style="background-color: #c1bfbf;"><strong>Valor Neto</strong></th>
- </tr>
- </thead>
- <tbody>
- <t t-set="current_subtotal" t-value="0"/>
- <t t-foreach="o.order_line" t-as="line">
- <t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
- <t t-set="current_subtotal" t-value="current_subtotal + line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
- <tr t-att-class="'bg-200 font-weight-bold o_line_section' if line.display_type == 'line_section' else 'font-italic o_line_note' if line.display_type == 'line_note' else ''">
- <t t-if="not line.display_type">
- <td class="text-center" id="item">
- <span t-esc="line_index + 1"/>
- </td>
- <td class="text-center" id="codigo">
- <span t-field="line.product_id.default_code"/>
- </td>
- <td class="text-center" id="product">
- <span t-field="line.name"/>
- </td>
- <td class="text-center" >
- <span t-field="line.product_qty"/>
- </td>
- <td class="text-center" >
- <span t-field="line.product_uom.name" groups="uom.group_uom"/>
- </td>
- <td class="text-center" >
- <span t-field="line.price_unit"/>
- </td>
- <td class="text-center" name="td_taxes">
- <span t-field="line.taxes_id"/>
- </td>
- <td class="text-center" name="td_discount">
- <span t-field="line.discount"/>
- </td>
- <td class="text-center" t-attf-style="background-color: #cccccc;">
- <span t-field="line.price_subtotal" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
- </td>
- </t>
- <t t-if="line.display_type == 'line_section'">
- <td colspan="99" id="section">
- <span t-field="line.name"/>
- </td>
- <t t-set="current_section" t-value="line"/>
- <t t-set="current_subtotal" t-value="0"/>
- </t>
- <t t-if="line.display_type == 'line_note'">
- <td colspan="99" id="note">
- <span t-field="line.name"/>
- </td>
- </t>
- </tr>
- <t t-if="current_section and (line_last or o.order_line[line_index+1].display_type == 'line_section')">
- <tr class="is-subtotal text-right">
- <td colspan="99" id="subtotal">
- <strong class="mr16">Subtotal</strong>
- <span t-esc="current_subtotal" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
- </td>
- </tr>
- </t>
- </t>
- </tbody>
- </table>
- </div>
- </div>
- <div id="total" class="row justify-content-end">
- <div class="col-8">
- <table class="table table-sm">
- <thead>
- <tr class="text-center">
- <th class="text-center">Observaciones Generales</th>
- </tr>
- </thead>
- <tbody>
- <tr t-attf-style="height: 20px;">
- <td><p t-field="o.notes"/></td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="col-4">
- <table class="table table-sm">
- <tr class="border-black">
- <td name="td_subtotal_label"><strong>Subtotal</strong></td>
- <td class="text-right">
- <span t-field="o.amount_untaxed" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
- </td>
- </tr>
- <tr>
- <td name="td_taxes_label">Taxes</td>
- <td class="text-right">
- <span t-field="o.amount_tax" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
- </td>
- </tr>
- <tr>
- <td name="td_total_descuentos">Total Descuentos</td>
- <td class="text-right">
- <span t-field="o.x_studio_total_descuentos" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
- </td>
- </tr>
- <tr class="border-black o_total">
- <td name="td_amount_total_label"><strong>Total</strong></td>
- <td class="text-right">
- <span t-field="o.amount_total" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <p class="text-center"><b>Señor proveedor, la factura deberá incluir el número de la orden de compra que la generá.</b></p>
- <p t-field="o.notes"/>
- <div class="oe_structure"/>
- </div>
- </t>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement