Browse Source

Ajustes factura

sebastian 5 years ago
parent
commit
21e2e2fc69
1 changed files with 38 additions and 32 deletions
  1. 38 32
      factura_venta_wenet.xml

+ 38 - 32
factura_venta_wenet.xml

@@ -10,19 +10,25 @@
         file="factura_venta_wenet.report_factura_wenet"
      />
 
-    <template id="report_header_custom" inherit_id="report.external_layout_header">
-         <xpath expr="//div[@class='header']" position="replace">
-            <div class ="header">
-            </div>
-         </xpath>
-    </template>
+     <record id="paperformat_lowmargin" model="report.paperformat">
+            <field name="name">Legal</field>
+            <field name="default" eval="True" />
+            <field name="format">custom</field>
+            <field name="page_height">356</field>
+            <field name="page_width">216</field>
+            <field name="orientation">Portrait</field>
+            <field name="margin_top">0</field>
+            <field name="margin_bottom">0</field>
+            <field name="margin_left">0</field>
+            <field name="margin_right">0</field>
+            <field name="header_line" eval="False" />
+            <field name="header_spacing">3</field>
+            <field name="dpi">90</field>
+     </record>
 
-    <template id="external_layout_footer" inherit_id="report.external_layout_footer">
-        <xpath expr="//div[@class='footer']"  position="replace">
-            <div class ="footer">
-            </div>
-        </xpath>
-    </template>
+     <record id="factura_venta_wenet.factura_venta_wenet" model="ir.actions.report.xml">
+         <field name="paperformat_id" ref="factura_venta_wenet.paperformat_lowmargin" />
+     </record>
 
     <template id="report_factura_wenet">
         <t t-call="report.html_container">
@@ -49,19 +55,19 @@
                             width: 11.5cm;
                             float: left;
                             padding-left: 1.9cm;
-                            min-height: 0.5cm;
+                            min-height: 0.4cm;
                         }
                         .contado_x{
                             width: 1cm;
                             float: left;
-                            padding-left: 3.9cm;
-                            min-height: 0.5cm;
+                            padding-left: 1.5cm;
+                            min-height: 0.4cm;
                         }
                         .credito_x{
-                            width: 1.8cm;
+                            width: 1cm;
                             float: left;
-                            padding-left: 1.7cm;
-                            min-height: 0.5cm;
+                            padding-left: 1.2cm;
+                            min-height: 0.4cm;
                         }
                         .linea2{
                             position: relative;
@@ -69,27 +75,27 @@
                             min-height: 0.4cm;
                          }
                          .direccion_data{
-                             width: 11.0cm;
-                             font-size: 2.3mm;
+                             width: 9.8cm;
+                             font-size: 2.2mm;
                              font-family: Arial, Helvetica, sans-serif;
                              float: left;
-                             padding-left: 1.8cm;
-                             min-height: 0.5cm;
+                             padding-left: 2.1cm;
+                             min-height: 0.4cm;
                          }
                          .telefono_data{
-                             width: 10.1cm;
-                             font-size: 2.3mm;
+                             width: 4.7cm;
+                             font-size: 2.2mm;
                              float: left;
-                             padding-left: 0.6cm;
-                             min-height: 0.5cm;
+                             padding-left: 1.3cm;
+                             min-height: 0.4cm;
                          }
                          .ruc_data{
-                              width: 5.2cm;
-                              font-size: 2.3mm;
+                              width: 4.8cm;
+                              font-size: 2.2mm;
                               font-family: Arial, Helvetica, sans-serif;
                               float: left;
                               padding-left: 0.3cm;
-                              min-height: 0.5cm;
+                              min-height: 0.4cm;
                           }
                         .linea3{
                             position: relative;
@@ -97,7 +103,7 @@
                             min-height: 0.4cm;
                          }
                          .nota_remision_data{
-                             width: 4.3cm;
+                             width: 6.3cm;
                              float: left;
                              padding-left: 1.5cm;
                              min-height: 0.5cm;
@@ -105,7 +111,7 @@
                         .fecha_emision_data{
                             width: 9cm;
                             font-size: 2.4mm;
-                            padding-left: 2.1cm;
+                            padding-left: 2.4cm;
                             float: left;
                             min-height: 0.5cm;
                         }
@@ -114,7 +120,7 @@
                             clear: both;
                         }
                         .articulos{
-                            height: 2.36cm;
+                            height: 2.30cm;
                         }
                         .art-col1{
 						    padding-left: 0.0cm;