|
@@ -10,9 +10,29 @@
|
|
file="factura_comun_2ca.report_presupuesto_2ca"
|
|
file="factura_comun_2ca.report_presupuesto_2ca"
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
+ <record id="paperformat_lowmargin" model="report.paperformat">
|
|
|
|
+ <field name="name">Hoja 2ca</field>
|
|
|
|
+ <field name="default" eval="True" />
|
|
|
|
+ <field name="format">custom</field>
|
|
|
|
+ <field name="page_height">150</field>
|
|
|
|
+ <field name="page_width">193</field>
|
|
|
|
+ <field name="orientation">Portrait</field>
|
|
|
|
+ <field name="margin_top">11</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="factura_comun_2ca.factura_venta_2ca" model="ir.actions.report.xml">
|
|
|
|
+ <field name="paperformat_id" ref="factura_comun_2ca.paperformat_lowmargin" />
|
|
|
|
+ </record>
|
|
|
|
+
|
|
<template id="report_presupuesto_2ca">
|
|
<template id="report_presupuesto_2ca">
|
|
<t t-call="report.html_container">
|
|
<t t-call="report.html_container">
|
|
- <t t-foreach="[1,2]" t-as="i">
|
|
|
|
|
|
+ <t t-foreach="[1]" t-as="i">
|
|
<div class="page">
|
|
<div class="page">
|
|
<style type="text/css">
|
|
<style type="text/css">
|
|
body{
|
|
body{
|
|
@@ -25,6 +45,10 @@
|
|
.pagina{
|
|
.pagina{
|
|
width:19.3cm;
|
|
width:19.3cm;
|
|
}
|
|
}
|
|
|
|
+ .cabecera{
|
|
|
|
+ width:6cm;
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
.descripcion{
|
|
.descripcion{
|
|
width: 0.3cm;
|
|
width: 0.3cm;
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
@@ -163,29 +187,16 @@
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
.art-col2{
|
|
.art-col2{
|
|
- padding-left: 0.7cm;
|
|
|
|
- width:1cm;
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
- .art-col3{
|
|
|
|
padding-left: 0.3cm;
|
|
padding-left: 0.3cm;
|
|
width:9cm;
|
|
width:9cm;
|
|
}
|
|
}
|
|
- .art-col4{
|
|
|
|
- width:0.9cm;
|
|
|
|
- text-align: right;
|
|
|
|
- }
|
|
|
|
- .art-col5{
|
|
|
|
|
|
+ .art-col3{
|
|
width:2.8cm;
|
|
width:2.8cm;
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
- .art-col6{
|
|
|
|
|
|
+ .art-col4{
|
|
width:2.7cm;
|
|
width:2.7cm;
|
|
text-align: right;
|
|
text-align: right;
|
|
- }
|
|
|
|
- .art-col7{
|
|
|
|
- width:1.5cm;
|
|
|
|
- text-align: right;
|
|
|
|
}
|
|
}
|
|
.logo1{
|
|
.logo1{
|
|
height: 2cm;
|
|
height: 2cm;
|
|
@@ -197,10 +208,17 @@
|
|
</style>
|
|
</style>
|
|
<t t-foreach="docs" t-as="o">
|
|
<t t-foreach="docs" t-as="o">
|
|
<div class="pagina">
|
|
<div class="pagina">
|
|
|
|
+ <div class="cabecera"> </div>
|
|
<div class="divisoria"> </div>
|
|
<div class="divisoria"> </div>
|
|
- <div style="border:0.3px solid #000;"></div>
|
|
|
|
|
|
+ <!-- <div style="border:0.3px solid #000;"></div> -->
|
|
<div class="divisoria"> </div>
|
|
<div class="divisoria"> </div>
|
|
- <div class="row">
|
|
|
|
|
|
+ <div class="divisoria"> </div>
|
|
|
|
+ <div class="divisoria"> </div>
|
|
|
|
+ <div class="divisoria"> </div>
|
|
|
|
+ <div class="divisoria"> </div>
|
|
|
|
+ <div class="divisoria"> </div>
|
|
|
|
+ <div class="divisoria"> </div>
|
|
|
|
+ <!-- <div class="row">
|
|
<div class="col-xs-6">
|
|
<div class="col-xs-6">
|
|
<center>
|
|
<center>
|
|
<img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 250px;max-width: 80px;"/>
|
|
<img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 250px;max-width: 80px;"/>
|
|
@@ -241,9 +259,9 @@
|
|
</tr>
|
|
</tr>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
<div class="divisoria"> </div>
|
|
<div class="divisoria"> </div>
|
|
- <div style="border:0.3px solid #000;"></div>
|
|
|
|
|
|
+ <!-- <div style="border:0.3px solid #000;"></div> -->
|
|
<div class="divisoria"> </div>
|
|
<div class="divisoria"> </div>
|
|
<div class="linea3">
|
|
<div class="linea3">
|
|
<div class="fecha_emision_data"><b>Fecha de Presupuesto: </b><span t-field="o.create_date" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
|
|
<div class="fecha_emision_data"><b>Fecha de Presupuesto: </b><span t-field="o.create_date" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
|
|
@@ -281,7 +299,7 @@
|
|
<span t-esc="'%.0f'%l.product_uom_qty"/>
|
|
<span t-esc="'%.0f'%l.product_uom_qty"/>
|
|
</td>
|
|
</td>
|
|
<td class="art-col2">
|
|
<td class="art-col2">
|
|
- <span t-field="l.name"/>
|
|
|
|
|
|
+ <span t-field="l.product_id.name"/>
|
|
</td>
|
|
</td>
|
|
<td class="art-col3">
|
|
<td class="art-col3">
|
|
<t t-if="o.currency_id.id == 166">
|
|
<t t-if="o.currency_id.id == 166">
|