123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report id="informe_recibo_2ca"
- model="account.voucher"
- string="Recibo"
- report_type="qweb-html"
- name="recibo_2ca.recibo_2ca"
- file="recibo_2ca.recibo_2ca"
- />
- <template id="report_header_custom" inherit_id="report.external_layout_header">
- <xpath expr="//div[@class='header']" position="replace">
- <div class ="header">
- </div>
- </xpath>
- </template>
- <template id="external_layout_footer" inherit_id="report.external_layout_footer">
- <xpath expr="//div[@class='footer']" position="replace">
- <div class ="footer">
- </div>
- </xpath>
- </template>
- <template id="recibo_2ca">
- <t t-call="report.html_container">
- <t t-call="report.external_layout">
- <t t-foreach="[1,2,3]" t-as="i">
- <div class="page">
- <style type="text/css">
- body{
- font-size: 3.0mm;
- font-family: Arial, Helvetica, sans-serif;
- }
- div{
- padding: 0px;
- }
- .pagina{
- width:19.3cm;
- }
- .logo{
- width: 100%;
- top: -0.12cm;
- top: 0px;
- }
- .logo3{
- width: 100%;
- min-height: 0.2cm;
- }
- .fecha_emision_data{
- width: 12.5cm;
- padding-left: 9.7cm;
- float: left;
- min-height: 1.6cm;
- }
- .contado_x{
- width: 1.0cm;
- float: left;
- padding-left: 1.1cm;
- min-height: 1.6cm;
- }
- .credito_x{
- width: 4.5cm;
- float: left;
- padding-left: 1.3cm;
- min-height: 1.6cm;
- }
- .linea2{
- position: relative;
- top: -0.12cm;
- min-height: 0.4cm;
- }
- .razon_data{
- width: 11.cm;
- float: left;
- padding-left: 12.9cm;
- min-height: 2.1cm;
- }
- .linea3{
- position: relative;
- top: -0.12cm;
- min-height: 0.4cm;
- }
- .direccion_data{
- width: 16cm;
- float: left;
- padding-left: 13.5cm;
- min-height: 1.0cm;
- }
- .linea4{
- position: relative;
- top: -0.12cm;
- min-height: 0.4cm;
- }
- .ruc_data{
- width: 13.9cm;
- float: left;
- padding-left: 8.5cm;
- min-height: 1.5cm;
- }
- .telefono_data{
- width: 4.8cm;
- float: right;
- padding-left: 0.9cm;
- min-height: 1.5cm;
- }
- .linea5{
- position: relative;
- top: -0.12cm;
- min-height: 0.4cm;
- }
- .nota_remision_data{
- width: 8.3cm;
- float: left;
- padding-left: 2.5cm;
- min-height: 0.5cm;
- }
- .cab-articulos{
- height: 0.5cm;
- clear: both;
- }
- .divisoria2{
- position: relative;
- top: -0.12cm;
- min-height: 2.9cm;
- }
- .descripcion4{
- width: 13cm;
- padding-left: 5.9cm;
- float: left;
- min-height: 1.6cm;
- }
- .divisoria3{
- position: relative;
- top: -0.12cm;
- min-height: 0.5cm;
- }
- .descripcion5{
- width: 18.7cm;
- padding-left: 8.9cm;
- float: left;
- min-height: 1.1cm;
- }
- .divisoria4{
- position: relative;
- top: -0.12cm;
- min-height: 0.5cm;
- }
- .fecha{
- width: 13cm;
- padding-left: 2cm;
- float: left;
- min-height: 0.5cm;
- }
- .logo1{
- min-height: 3.7cm;
- width: 100%;
- top: 0px;
- }
- .logo2{
- min-height: 3.6cm;
- width: 100%;
- top: 0px;
- }
- </style>
- <t t-foreach="docs" t-as="o">
- <div class="pagina">
- <div class="logo"> </div>
- <div class="logo3"> </div>
- <div class="linea1">
- <div class="fecha_emision_data"></div>
- <div class="contado_x">
- </div>
- <div class="credito_x">
- <span t-esc="'{0:,.0f}'.format(o.amount)"/>
- </div>
- </div>
- <div class="linea2">
- </div>
- <div class="linea3">
- <div class="direccion_data">
- </div>
- </div>
- <div class="linea4">
- <td style="font-size:2.5px;">
- <div class="ruc_data"><span t-field="o.partner_id.name"/></div>
- <div class="telefono_data"><span t-field="o.partner_id.ruc"/></div>
- </td>
- </div>
- <div class="linea5">
- </div>
- <div class="divisoria2">
- <div class="descripcion4"><span t-esc="convertir(o.amount,o.currency_id.en_letras1)"/></div>
- </div>
- <div class="cab-articulos"> </div>
- <div class="divisoria3">
- <div class="descripcion5"><span t-field="o.comment_obs"/></div>
- </div>
- <div class="divisoria4">
- <div class="fecha"><span t-field="o.date" t-field-options='{"format": "dd MMM yyyy"}'/></div>
- </div>
- </div>
- <t t-if="i == 1">
- <div class="logo1"> </div>
- </t>
- <t t-if="i == 2">
- <div class="logo2"> </div>
- </t>
- </t>
- </div>
- </t>
- </t>
- </t>
- </template>
- </data>
- </openerp>
|