123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report id="ticket_venta_gracia"
- model="sale.order"
- string="Ticket"
- report_type="qweb-html"
- name="ticket_venta_gracia.report_ticket_gracia"
- file="ticket_venta_gracia.report_ticket_gracia"
- />
- <record id="paperformat_lowmargin" model="report.paperformat">
- <field name="name">Ticket Gracia</field>
- <field name="default" eval="True" />
- <field name="format">custom</field>
- <field name="page_height">150</field>
- <field name="page_width">60</field>
- <field name="orientation">Portrait</field>
- <field name="margin_top">3</field>
- <field name="margin_bottom">3</field>
- <field name="margin_left">3</field>
- <field name="margin_right">3</field>
- <field name="header_line" eval="False" />
- <field name="header_spacing">3</field>
- <field name="dpi">90</field>
- </record>
- <record id="ticket_venta_gracia.ticket_venta_gracia" model="ir.actions.report.xml">
- <field name="paperformat_id" ref="ticket_venta_gracia.paperformat_lowmargin" />
- </record>
- <template id="report_ticket_gracia">
- <t t-call="report.html_container">
- <!-- <t t-foreach="[1,2,3]" t-as="i"> -->
- <div class="page">
- <style>
- .logo{
- height: 1.71cm;
- width: 100%;
- top: 0px;
- }
- .table-condensed>tbody>tr>td {
- padding: 1px !important;
- }
- .borderless td, .borderless th {
- border: none !important;
- }
- .logo1{
- height: 2.61cm;
- width: 100%;
- top: 0px;
- }
- .logo2{
- height: 3.30cm;
- width: 100%;
- top: 0px;
- }
- </style>
- <t t-foreach="docs" t-as="o">
- <div class="pagina">
- <div class="row">
- <div class="col-xs-4">
- <!--
- ======================================================================
- CABECERA
- ======================================================================
- -->
- <div style="height:1.5cm;">
- <div style="padding-top:0.4cm;font-size:9.5px;font-family: Arial;">
- <div style="text-align: center;">
- <span t-field="o.create_date" t-options='{"format": "dd/mm/aaaa hh.mm.ss"}'/>
- </div>
- <!-- <div>
- <span t-esc="time.strftime('%m/%d/%Y',time.strptime(object.datetimefield,'%Y-%m-%d %H:%M:%S'))"/>
- </div> -->
- <div style="text-align: center;">
- <span t-field="o.name"/>-<span t-field="o.user_id"/>
- </div>
- </div>
- </div>
- <div style="height:1.5cm;">
- <div style="font-size:11px;font-family: Arial;">
- <div style="text-align: center;">
- <b><center><span t-field="o.company_id.name"/></center></b>
- </div>
- </div>
- <div style="font-size:8px;font-family: Arial;">
- <div style="text-align: center;">
- <b><center><span t-field="o.company_id.street"/></center></b>
- </div>
- </div>
- <div style="font-size:8px;font-family: Arial;">
- <div style="text-align: center;">
- <b><center><span t-field="o.company_id.phone"/></center></b>
- </div>
- </div>
- </div>
- <div style="height:1.5cm;">
- <div style="width:12cm;padding-right:5.0cm;font-size:9.5px;font-family: Arial;">
- <div>
- <b>Cliente: </b><span t-field="o.partner_id.name"/>
- &nbsp;&nbsp;
- <span t-field="o.partner_id.ruc"/>
- </div>
- <div>
- <b>Teléfono: </b><span t-field="o.partner_id.mobile"/>
- </div>
- <div>
- <b>N° de Legajo: </b><span t-field="o.partner_id.fax"/>
- </div>
- </div>
- </div>
- <!--
- ======================================================================
- TABLA
- ======================================================================
- -->
- <div style="height:3.1cm;">
- <div style="font-family: Arial;">
- <table class="table table-condensed table-bordered">
- <thead>
- <tr>
- <th style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;"><b>Cant.</b></th>
- <th style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto; text-align: left;"><b>Producto</b></th>
- <th style="font-size:10px;font-family: Arial;width:1.9cm;overflow: auto; text-align: center;"><b>Precio</b></th>
- </tr>
- </thead>
- <tbody>
- <tr t-foreach="o.order_line" t-as="l">
- <!-- CANTIDAD -->
- <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
- <span t-esc="'%.0f'%l.product_uom_qty"/>
- </td>
- <!-- NOMBRE DEL PRODUCTO -->
- <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
- <span t-field="l.name"/>
- </td>
- <!-- PRECIO UNITARIO -->
- <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
- <t t-if="o.currency_id.id == 166">
- <span t-esc="'{0:,.0f}'.format(l.product_uom_qty * l.price_unit)"/>
- </t>
- <t t-if="o.currency_id.id != 166">
- <span t-esc="'{0:,.2f}'.format(l.product_uom_qty * l.price_unit)"/>
- </t>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <table class="table table-condensed">
- <tbody>
- <tr>
- <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
- <b>Sub Total: </b>
- </td>
- <!-- NOMBRE DEL PRODUCTO -->
- <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
- </td>
- <!-- PRECIO UNITARIO -->
- <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
- <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
- </td>
- </tr>
- <tr>
- <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
- <b>Descuento: </b>
- </td>
- <!-- NOMBRE DEL PRODUCTO -->
- <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
- </td>
- <!-- PRECIO UNITARIO -->
- <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
- </td>
- </tr>
- <tr>
- <td style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: left;">
- <b>Total: </b>
- </td>
- <!-- NOMBRE DEL PRODUCTO -->
- <td style="font-size:10px;font-family: Arial;width:9.5cm;overflow: auto;">
- </td>
- <!-- PRECIO UNITARIO -->
- <td style="font-size:10px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
- <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
- </td>
- </tr>
- </tbody>
- </table>
- <div style="width:12cm;font-size:9.5px;font-family: Arial;">
- <span t-field="o.payment_term"/> - <span t-field="o.currency_id.name"/>
- </div>
- </div>
- </div>
- </div>
- </t>
- </div>
- <!-- </t> -->
- </t>
- </template>
- </data>
- </openerp>
|