1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report id="list_coste_product_valorizado" model="product.template" string="Precio Coste Valorizado" report_type="qweb-pdf"
- name="report_product.product_coste_valorizado_view" file="report_product.product_coste_valorizado_view" />
- <template id="product_coste_valorizado_view">
- <t t-call="report.html_container">
- <t t-call="report.internal_layout">
- <div class="page">
- <style type="text/css">
- .crm_tcab{
- font-size: 3mm;
- font-family: Arial, Helvetica, sans-serif;
- }
- .crm_tbody{
- font-size: 2.8mm;
- font-family: Arial, Helvetica, sans-serif;
- }
- </style>
- <h2 class="text-center"><strong>Listado de Precio Coste de Productos Valorizado</strong></h2>
- <table class="table table-condensed">
- <thead class="crm_tcab">
- <tr class="active">
- <th><strong>Producto</strong></th>
- <th><strong>Referencia de Fabrica</strong></th>
- <th class="text-right"><strong>Cantidad</strong></th>
- <th class="text-right"><strong>Precio de Coste</strong></th>
- <th class="text-right"><strong>Coste Valoreizado</strong></th>
- </tr>
- </thead>
- <t t-foreach="docs" t-as="o">
- <tbody class="crm_tbody">
- <tr>
- <td> <span t-field="o.name"/> </td>
- <td> <span t-field="o.factory_reference"/> </td>
- <td class="text-right"> <span t-field="o.qty_available"/></td>
- <td class="text-right"> <span t-field="o.standard_price"/> </td>
- <t t-set="total" t-value="o.qty_available * o.standard_price"/>
- <td class="text-right"> <span t-esc="total"/> </td>
- </tr>
- </tbody>
- </t>
- <tr class="border-black">
- <td colspan="4">Total:</td>
- <td class="text-right">
- <!-- <t t-set="standard_pri" t-value="sum([x.standard_price for x in docs])"/> -->
- <t t-set="tot" t-value="sum([(x.qty_available * x.standard_price) for x in docs])"/>
- <!-- <t t-set="tot" t-value="tot"/> -->
- <span t-esc="tot"/>
- </td>
- </tr>
- </table>
- </div>
- </t>
- </t>
- </template>
- </data>
- </openerp>
|