Browse Source

Ajuste campos varios

Sebas 5 years ago
parent
commit
6459fdc70c
5 changed files with 873 additions and 193 deletions
  1. 2 1
      __openerp__.py
  2. 6 0
      nota_remision.py
  3. BIN
      nota_remision.pyc
  4. 384 192
      nota_remision_print.xml
  5. 481 0
      nota_remision_standard.xml

+ 2 - 1
__openerp__.py

@@ -40,8 +40,9 @@ Permite crear una nota de remisión a partir del pedido de venta.
         'nota_remision_view.xml',
         'nota_remision_workflow.xml',
         'nota_remision_sequence.xml',
+        # 'nota_remision_standard.xml',
         'nota_remision_print.xml',
-        'security/ir.model.access.csv',
+        # 'security/ir.model.access.csv',
     ],
     'installable': True,
 }

+ 6 - 0
nota_remision.py

@@ -41,7 +41,10 @@ class sale_nota_remision(models.Model):
         self.partner_ruc = self.partner_id.ruc
         self.partner_phone = self.partner_id.phone
         self.partner_mobile = self.partner_id.mobile
+        self.partner_street = self.partner_id.street
         self.partner_company = self.partner_id.company_id.id
+        self.partner_city = self.partner_id.city
+        self.partner_state = self.partner_id.state_id.name
 
     #data fields for salesman
     @api.multi
@@ -91,6 +94,9 @@ class sale_nota_remision(models.Model):
     partner_ruc = fields.Char(string='R.U.C./C.I.',compute='_partner_data')
     partner_phone = fields.Char(string='Teléfono',compute='_partner_data')
     partner_mobile = fields.Char(string='Telef. Móvil',compute='_partner_data')
+    partner_street = fields.Char(string='Dirección',compute='_partner_data')
+    partner_city = fields.Char(string='Ciudad',compute='_partner_data')
+    partner_state = fields.Char(string='Departamento',compute='_partner_data')
     #company address
     partner_company = fields.Many2one('res.company', string='Empresa')
 

BIN
nota_remision.pyc


+ 384 - 192
nota_remision_print.xml

@@ -72,261 +72,464 @@
                             border: 1px solid black;
                             padding:10px
                         }
-
+                        th, td {
+                            width:150px;
+                            padding:4.8px
+                        }
+                        .logo1{
+                            height: 2.1cm;
+                            width: 100%;
+                            top: 0px;
+                        }
+                        .fecha_emision_data{
+                            width: 12.5cm;
+                            padding-left: 8.2cm;
+                            float: left;
+                            min-height: 1.4cm;
+                        }
                         .blank_space{
-                        height:5px;
+                            height:5px;
                         }
                         .cli_nombre_label{
                             width:4.5cm;
+                            min-height: 1cm;
                         }
                         .cli_nombre{
                             width:3cm;
+                            min-height: 1cm;
                         }
                         .cli_ruc_label{
                             width:3cm;
+                            min-height: 1cm;
                         }
                         .cli_ruc{
                             width:3cm;
+                            min-height: 1cm;
                         }
                         .cli_telef_label{
                             width:3cm;
+                            min-height: 1.6cm;
                         }
                         .cli_telef{
                             width:3cm;
+                            min-height: 1.6cm;
                         }
                         .cli_movil_label{
                             width:3cm;
+                            min-height: 1.6cm;
                         }
                         .cli_movil{
                             width:3cm;
+                            min-height: 1.6cm;
+                        }
+
+                        .logo{
+                            height: 0.7cm;
+                            width: 100%;
+                            top: 0px;
+                        }
+
+                        .motivo_data_label{
+                            width:3cm;
+                            min-height: 1.4cm;
+                        }
+                        .motivo_data{
+                            width:3cm;
+                            padding-left: 3.0cm;
+                            min-height: 1.4cm;
+                        }
+                        .comprobante_data_label{
+                            width:1cm;
+                            min-height: 1.4cm;
+                        }
+                        .comprobante_data{
+                            width:3cm;
+                            padding-left: 0.9cm;
+                            min-height: 1.4m;
+                        }
+
+                        .comprobante_label{
+                            width:0.2cm;
+                            min-height: 1.5cm;
+                        }
+                        .comprobante{
+                            width:3cm;
+                            padding-left: 4.4cm;
+                            min-height: 1.5cm;
+                        }
+
+                        .timbrado_label{
+                            width:3cm;
+                            min-height: 1.5cm;
+                        }
+                        .timbrado{
+                            width:3cm;
+                            padding-left: 0.2cm;
+                            min-height: 1.5cm;
+                        }
+
+                        .expedicion_label{
+                            width:1cm;
+                            min-height: 1.5cm;
+                        }
+                        .expedicion{
+                            width:3cm;
+                            padding-left: 3.3cm;
+                            min-height: 1.5cm;
                         }
 
                         .fecha_inicio_label{
                             width:3cm;
+                            min-height: 1.6cm;
                         }
                         .fecha_inicio{
                             width:3cm;
+                            padding-left: 3.8cm;
+                            min-height: 1.6cm;
                         }
                         .fecha_termino_label{
                             width:3cm;
+                            min-height: 1.6cm;
                         }
                         .fecha_termino{
                             width:3cm;
+                            min-height: 1.6cm;
                         }
 
                         .direccion_partida_label{
                             width:3cm;
+                            padding-left: 3.9cm;
+                            min-height: 1.5cm;
                         }
                         .direccion_partida{
                             width:3cm;
+                            padding-left: 3.6cm;
+                            min-height: 1.5cm;
+                        }
+
+                        .ciudad_label{
+                            width:3cm;
+                            min-height: 1.9cm;
                         }
+                        .ciudad{
+                            width:3cm;
+                            padding-left: 2.2cm;
+                            min-height: 1.9cm;
+                        }
+                        .departamento_label{
+                            width:1cm;
+                            min-height: 1.9cm;
+                        }
+                        .departamento{
+                            width:3cm;
+                            min-height: 1.9cm;
+                        }
+
                         .direccion_llegada_label{
                             width:3cm;
+                            min-height: 1.6cm;
                         }
                         .direccion_llegada{
                             width:3cm;
+                            padding-left: 4.3cm;
+                            min-height: 1.6cm;
                         }
 
-                        .vend_nombre_label{
+                        .ciudad2_label{
                             width:3cm;
+                            min-height: 1.6cm;
                         }
-                        .vend_nombre{
+                        .ciudad2{
                             width:3cm;
+                            min-height: 1.6cm;
                         }
-                        .vend_telef_label{
-                            width:3cm;
+                        .departamento2_label{
+                            width:0.2cm;
+                            min-height: 1.6cm;
                         }
-                        .vend_telef{
+                        .departamento2{
                             width:3cm;
+                            min-height: 1.6cm;
                         }
-
-                        .vehiculo_nombre_label{
-                            width:4.5cm;
+                        .km_label{
+                            width:0.1cm;
+                            min-height: 1.7cm;
                         }
-                        .vehiculo_nombre{
+                        .km{
                             width:3cm;
+                            padding-left: 3.3cm;
+                            min-height: 1.7cm;
                         }
-                        .vehiculo_chapa_label{
+
+                        .cambio_fecha_label{
                             width:3cm;
+                            min-height: 1.5cm;
                         }
-                        .vehiculo_chapa{
+                        .cambio_fecha{
                             width:3cm;
+                            padding-left: 7.5cm;
+                            min-height: 1.5cm;
+                        }
+
+                        .espacio{
+                            width:1.1cm;
                         }
 
-                        .transportista_nombre_label{
+                        .motivo_cambio_label{
                             width:3cm;
+                            min-height: 5.9cm;
                         }
-                        .transportista_nombre{
+                        .motivo_cambio{
                             width:3cm;
+                            padding-left: 1.2cm;
+                            min-height: 5.9cm;
+                        }
+                        .espacio1{
+                            width:1.1cm;
+                        }
+
+                        .vehiculo_nombre_label{
+                            width:1.5cm;
+                            min-height: 1.4m;
                         }
-                        .transportista_ruc_label{
+                        .vehiculo_nombre{
                             width:3cm;
+                            padding-left: 0.2cm;
+                            min-height: 1.4cm;
                         }
-                        .transportista_ruc{
+                        .vehiculo_chapa_label{
+                            width:1cm;
+                            min-height: 1.4cm;
+                        }
+                        .vehiculo_chapa{
                             width:3cm;
+                            padding-left: 4.8cm;
+                            min-height: 1.4cm;
+                        }
+                        .remolque_chapa_label{
+                            width:10cm;
+                            min-height: 4.5cm;
+                        }
+                        .remolque_chapa{
+                            width:3cm
+                            padding-left: 2.2cm;
+                            min-height: 4.5cm;
                         }
 
                         .conductor_nombre_label{
                             width:3cm;
+                            min-height: 1.4cm;
                         }
                         .conductor_nombre{
                             width:3cm;
+                            padding-left: 1.8cm;
+                            min-height: 1.4cm;
                         }
                         .conductor_ruc_label{
-                            width:3cm;
+                            width:2cm;
+                            min-height: 1.4cm;
                         }
                         .conductor_ruc{
                             width:3cm;
+                            min-height: 1.4cm;
                         }
                         .conductor_direccion_label{
                             width:3cm;
+                            min-height: 1.5cm;
                         }
                         .conductor_direccion{
                             width:3cm;
+                            min-height: 1.5cm;
                         }
 
-                        .tab_motivos{
-                            font-size:x-small;
-                            border-spacing: 3px;
-                            border-collapse: separate;
-                        }
-                        .casilla{
-                            width:0.5cm;
-                            border: solid 1px;
-                            text-align:center;
-                        }
-                        .texto_casilla{
-                            text-align:right;
+                        .cab-articulos{
+                            height: 2.9cm;
+                            padding-left: 1.4cm;
+                            width: 100%;
+                            clear: both;
+                        }
+                        .articulos{
+                            height: 4.65cm;
+                            padding-left: 1.4cm;
+                            width: 100%;
+                        }
+                        .art-col1{
+                            width:2.2cm;
+                            text-align: center;
+                        }
+                        .art-col2{
+                        	padding-left: 1.5cm;
+                            width:1cm;
+                            text-align: center;
+                        }
+                        .art-col3{
+                            padding-left: 1cm;
+                            width:11.4cm;
                         }
                     </style>
-
-                    <h2><center>NOTA DE REMISIÓN <span t-field="o.name"></span></center></h2>
-                    <div class="div_border">
-                    <h5>1. DESTINATARIO DE LA MERCADERÍA</h5>
+                    <div class="logo1"></div>
+                    <!-- <h2><center>NOTA DE REMISIÓN <span t-field="o.name"></span></center></h2> -->
+                    <div class="fecha_emision_data"><span t-field="o.initial_transfer_date"  t-field-options='{"format": "dd MMMM yyyy"}'/></div>
+                    <!-- <div class="div_border"> -->
+                    <!-- <h5>1. DESTINATARIO DE LA MERCADERÍA</h5> -->
                     <table width="100%">
                         <tr>
-                            <td class="cli_nombre_label">Nombre o Razón Social del Destinatario: </td>
+                            <td class="cli_nombre_label"></td>
                             <td class="cli_nombre"><span t-field="o.partner_id"/></td>
-                            <td class="cli_ruc_label">R.U.C./C.I.N.: </td>
+                            <td class="cli_ruc_label">         </td>
                             <td class="cli_ruc"><span t-field="o.partner_ruc"/></td>
                         </tr>
+                        <div class="blank_space"/>
                         <tr>
-                            <td class="cli_telef_label">Teléfono Particular: </td>
-                            <td class="cli_telef"><span t-field="o.partner_phone"/></td>
-                            <td class="cli_movil_label">Móvil: </td>
+                            <td class="cli_telef_label">           </td>
+                            <td class="cli_telef"><span t-field="o.partner_street"/></td>
+                            <td class="cli_movil_label">        </td>
                             <td class="cli_movil"><span t-field="o.partner_mobile"/></td>
                         </tr>
                     </table>
-                  </div>
+                  <!-- </div> -->
                   <div class="blank_space"/>
-                  <div class="div_border">
-                    <h5>2. DATOS DEL ENVÍO</h5>
-                    <table width="100%">
+                  <div class="blank_space"/>
+                  <div class="logo"></div>
+
+                 <div class="blank_space"/>
+                  <!-- <div class="div_border"> -->
+                  <!-- <h5>3. MOTIVO DEL TRANSLADO</h5> -->
+                  <table width="80%">
                         <tr>
-                            <td class="fecha_inicio_label">Fecha de inicio del Traslado: </td>
-                            <td class="fecha_inicio"><span t-field="o.initial_transfer_date"/></td>
-                            <td class="fecha_termino_label">Fecha de término del Traslado: </td>
-                            <td class="fecha_termino"><span t-field="o.finish_transfer_date"/></td>
+                            <td class="motivo_data_label">
+                            </td>
+                            <td class="motivo_data">
+                                  <t t-if="o.is_sale">
+                                      <span>Venta</span>
+                                  </t>
+                                  <t t-if="o.is_export">
+                                      <span>Exportación</span>
+                                  </t>
+                                  <t t-if="o.is_consignment">
+                                      <span>Consignación</span>
+                                  </t>
+                                  <t t-if="o.is_intertal_transfer">
+                                      <span>Traslado entre locales de la misma empresa</span>
+                                  </t>
+                                  <t t-if="o.is_repair_transfer">
+                                      <span>Traslado de Bienes para Reparación</span>
+                                  </t>
+                                  <t t-if="o.is_exhibition">
+                                      <span>Exhibición, demostración</span>
+                                  </t>
+                                  <t t-if="o.is_purchase">
+                                      <span>Compra</span>
+                                  </t>
+                                  <t t-if="o.is_import">
+                                      <span>Importación</span>
+                                  </t>
+                                  <t t-if="o.is_return">
+                                      <span>Devolución</span>
+                                  </t>
+                                  <t t-if="o.is_transformation_transfer">
+                                      <span>Traslado de Bienes para la Transformación</span>
+                                  </t>
+                                  <t t-if="o.is_movil_transfer">
+                                      <span>Traslado por Emisión móvil</span>
+                                  </t>
+                                  <t t-if="o.is_fair">
+                                      <span>Participación en Ferias</span>
+                                  </t>
+                            </td>
+                            <td class="comprobante_data_label">
+                            </td>
+                            <td class="comprobante_data"><span t-field="o.sale_voucher"/></td>
                         </tr>
                         <tr>
-                            <td class="direccion_partida_label">Dirección del punto de partida: </td>
-                            <td class="direccion_partida" colspan="3"><span t-field="o.partner_company.street"/> <span t-field="o.partner_company.street2"/>, <span t-field="o.partner_company.city"/></td>
+                            <td class="comprobante_label">
+                            </td>
+                            <td class="comprobante"><span t-field="o.sale_voucher"/></td>
+                            <td class="timbrado_label">
+                            </td>
+                            <td class="timbrado"><span t-field="o.name"/></td>
                         </tr>
                         <tr>
-                            <td class="direccion_llegada_label">Dirección de punto de llegada: </td>
-                            <td class="direccion_llegada" colspan="3"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/>, <span t-field="o.partner_id.city"/></td>
+                            <td class="expedicion_label">
+                            </td>
+                            <td class="expedicion"><span t-field="o.name"/></td>
                         </tr>
-                    </table>
-                  </div>
-                      <div class="blank_space"/>
-                  <div class="div_border">
-                  <h5>3. MOTIVO DEL TRANSLADO</h5>
-                  <table width="100%" class="tab_motivos">
-                      <tr>
-                          <td class="texto_casilla">Venta: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_sale">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                          <td class="texto_casilla">Exportación: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_export">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                          <td class="texto_casilla">Consignación: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_consignment">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                          <td class="texto_casilla">Traslado entre locales de la misma empresa: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_intertal_transfer">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                          <td class="texto_casilla">Traslado de Bienes para Reparación: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_repair_transfer">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                          <td class="texto_casilla">Exhibición, demostración: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_exhibition">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                      </tr>
-                      <tr>
-                          <td class="texto_casilla">Compra: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_purchase">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                          <td class="texto_casilla">Importación: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_import">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                          <td class="texto_casilla">Devolución: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_return">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                          <td class="texto_casilla">Traslado de Bienes para la Transformación: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_transformation_transfer">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                          <td class="texto_casilla">Traslado por Emisión móvil: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_movil_transfer">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                          <td class="texto_casilla">Participación en Ferias: </td>
-                          <td class="casilla">
-                              <t t-if="o.is_fair">
-                                  <span> X </span>
-                              </t>
-                          </td>
-                      </tr>
                   </table>
-                </div>
+                <!-- </div> -->
+                <!-- <h5>2. DATOS DEL ENVÍO</h5> -->
+
+
+                <table width="75%">
+                    <tr>
+                        <td class="fecha_inicio_label"> </td>
+                        <td class="fecha_inicio"><span t-field="o.initial_transfer_date" t-field-options='{"format": "DD/MM/yyyy"}'/></td>
+                        <td class="fecha_termino_label"> </td>
+                        <td class="fecha_termino"><span t-field="o.finish_transfer_date" t-field-options='{"format": "DD/MM/yyyy"}'/></td>
+                    </tr>
+                    <tr>
+                        <div class="blank_space"/>
+                    </tr>
+                    <tr>
+                        <div class="blank_space"/>
+                    </tr>
+                    <tr>
+                        <td class="direccion_partida_label"> </td>
+                        <td class="direccion_partida" colspan="3"><span t-field="o.partner_company.street"/> <span t-field="o.partner_company.street2"/></td>
+                    </tr>
+                    <tr></tr><tr></tr>
+                    <tr>
+                        <td class="ciudad_label"> </td>
+                        <td class="ciudad"><span t-field="o.partner_company.city"/></td>
+                        <td class="departamento_label"> </td>
+                        <td class="departamento"><span t-field="o.partner_state"/></td>
+                    </tr>
+                    <tr></tr><tr></tr>
+                    <tr>
+                        <td class="direccion_llegada_label"> </td>
+                        <td class="direccion_llegada" colspan="3"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/>, <span t-field="o.partner_id.city"/></td>
+                    </tr>
+                    <tr></tr><tr></tr>
+                    <tr>
+                        <td class="ciudad2_label"> </td>
+                        <td class="ciudad2"><span t-field="o.partner_city"/></td>
+                        <td class="departamento2_label"> </td>
+                        <td class="departamento2"><span t-field="o.partner_state"/></td>
+                    </tr>
+                </table>
+
+                <div class="blank_space"/>
+                <table width="70%">
+                    <tr>
+                        <td class="km_label"> </td>
+                        <td class="km"><span t-field="o.obs_remision"/></td>
+                    </tr>
+                    <tr>
+                         <td class="spacio"> </td>
+                    </tr>
+                    <tr>
+                        <td class="cambio_fecha_label"> </td>
+                        <td class="cambio_fecha"><span t-field="o.obs_remision"/></td>
+                    </tr>
+                       <td class="spacio"> </td>
+                    <tr>
+                    </tr>
+                    <tr>
+                        <td class="motivo_cambio_label"> </td>
+                        <td class="motivo_cambio"><span t-field="o.obs_remision"/></td>
+                    </tr>
+                </table>
+              <!-- </div> -->
                   <div class="blank_space"/>
-                    <div class="div_border">
-                    <h5>4. DATOS DEL TRANSPORTISTA Y DEL COMPROBANTE DE VENTA POR EL SERVICIO DE TRANSPORTE</h5>
-                    <table width="100%">
+                  <div class="blank_space"/>
+                  <div class="blank_space"/>
+                  <div class="blank_space"/>
+
+                    <!-- <div class="div_border"> -->
+                    <!-- <h5>4. DATOS DEL TRANSPORTISTA Y DEL COMPROBANTE DE VENTA POR EL SERVICIO DE TRANSPORTE</h5> -->
+                    <!-- <table width="100%">
                         <tr>
                             <td class="vend_nombre_label">Nombre y Apellido: <span t-field="o.user_id"/></td>
-                            <!-- <td class="vend_nombre" colspan="3"></td> -->
+
                         </tr>
                         <tr>
                             <td class="vend_telef_label">Teléfono: </td>
@@ -335,80 +538,69 @@
 
                         <tr>
                                   <td class="transportista_nombre_label">Nombre o Razón Social del Transportista: <span t-field="o.logistic_company_id"/></td>
-                                  <!-- <td class="transportista_nombre"></td> -->
+
                         </tr>
                         <tr>
                                   <td class="transportista_ruc_label">R.U.C. del transportista: <span t-field="o.logistic_ruc"/></td>
-                                  <!-- <td class="transportista_ruc"></td> -->
+
                         </tr>
-                    </table>
-                  </div>
-                  <div class="blank_space"/>
-                  <div class="div_border">
-                    <h5>5. DATOS DEL VEHICULO DE TRANSPORTE</h5>
+                    </table> -->
+                  <!-- </div> -->
+                  <!-- <div class="blank_space"/> -->
+                  <!-- <div class="div_border"> -->
+                    <!-- <h5>5. DATOS DEL VEHICULO DE TRANSPORTE</h5> -->
+                     <div class="spacio1"> </div>
+                     <div class="blank_space"/>
+                     <div class="blank_space"/>
                     <table width="100%">
                         <tr>
-                            <td class="vehiculo_nombre_label">Marca del Vehículo de Transporte: </td>
+                            <td class="vehiculo_nombre_label"></td>
                             <td class="vehiculo_nombre"><span t-field="o.vehicle_name"/></td>
-                            <td class="vehiculo_chapa_label">Número de Chapa: </td>
+                        </tr>
+                        <tr>
+                            <td class="vehiculo_chapa_label"></td>
                             <td class="vehiculo_chapa"><span t-field="o.vehicle_plate"/></td>
                         </tr>
+                    </table>
+                    <table width="100%">
+                        <tr>
+                            <td class="remolque_chapa_label"></td>
+                            <td class="remolque_chapa"><span t-field="o.vehicle_plate"/></td>
+                        </tr>
 
                     </table>
-                  </div>
+                  <!-- </div> -->
+                  <div class="blank_space"/>
+                  <div class="blank_space"/>
                   <div class="blank_space"/>
-                  <div class="div_border">
-                    <h5>6. DATOS DEL CONDUCTOR DEL VEHICULO</h5>
+                  <div class="blank_space"/>
+                  <div class="blank_space"/>
+                  <!-- <div class="div_border"> -->
+                    <!-- <h5>6. DATOS DEL CONDUCTOR DEL VEHICULO</h5> -->
                     <table width="100%">
                         <tr>
-                            <td class="conductor_nombre_label">Nombre del Conductor: </td>
+                            <td class="conductor_nombre_label"> </td>
                             <td class="conductor_nombre"><span t-field="o.driver_id"/></td>
-                            <td class="conductor_ruc_label">C.I.N. del Conductor: </td>
-                            <td class="conductor_ruc"><span t-field="o.driver_ruc"/></td>
+                            <td class="conductor_ruc_label"> </td>
+                            <td class="conductor_ruc"><span t-field="o.logistic_ruc"/></td>
                         </tr>
                         <tr>
-                            <td class="conductor_direccion_label">Dirección del Conductor: </td>
-                            <td class="conductor_direccion" colspan="3"><span t-field="o.driver_id.street"/> <span t-field="o.driver_id.street2"/>, <span t-field="o.driver_id.city"/></td>
+                            <td class="conductor_direccion_label"></td>
+                            <td class="conductor_direccion" colspan="3"><span t-field="o.driver_id.street"/> <span t-field="o.driver_id.street2"/></td>
                         </tr>
                     </table>
+                  <!-- </div> -->
+
+                  <div class="cab-articulos"> </div>
+                  <div class="articulos">
+                      <table class="tab-articulos">
+                          <tr t-foreach="o.nota_line" t-as="l">
+                              <td class="art-col1"><span t-esc="'%.0f'%l.product_uom_qty"/></td>
+                              <td class="art-col2"><span t-field="l.product_id.uom_id"/></td>
+                              <td class="art-col3"><span t-field="l.product_id.name"/></td>
+                         </tr>
+                      </table>
                   </div>
-                  <div class="blank_space"/>
-                  <div class="div_border">
-                    <h5>7. DATOS DE LA MERCADERÍA</h5>
-                    <table class="table table-condensed">
-                        <thead>
-                            <tr>
-                                <th>Producto</th>
-                                <th>Cantidad</th>
-                                <th>Precio</th>
-                                <th>Descuento</th>
-                                <th align="right">Subtotal</th>
-                            </tr>
-                        </thead>
-                        <tbody>
-                            <t t-foreach="o.nota_line" t-as="i">
-                                <tr>
-                                    <td><span t-field="i.product_id.name"/></td>
-                                    <td><span t-esc="'%.0f'%i.product_uom_qty"/></td>
-                                    <td><span t-esc="'{0:,.0f}'.format(i.price_unit).replace(',', '.').replace(',', '.')"/></td>
-                                    <td><span t-field="i.discount"/> %</td>
-                                    <td align="right"><span t-esc="'{0:,.0f}'.format(i.price_subtotal).replace(',', '.')"/></td>
-                                </tr>
-                            </t>
-                            <tr>
-                                <td></td>
-                                <t t-set="cant_total" t-value="sum([x.product_uom_qty for x in o.nota_line])"/>
-                                <td><strong><span t-esc="can_total"/></strong></td>
-                                <td colspan="2" align="right"><strong>Totales</strong></td>
-                                <t t-set="suma" t-value="sum([x.price_subtotal for x in o.nota_line])"/>
-                                <td align="right"><strong><span t-esc="'{0:,.0f}'.format(int(suma)).replace(',', '.')"/></strong></td>
-                            </tr>
-                        </tbody>
-                    </table>
-                  </div>
-                    <p>Recibí en buenas condiciones la cantidad de <strong><span t-esc="'{0:,.0f}'.format(int(cant_total)).replace(',', '.')"/></strong> mercaderías por la suma de Gs. <strong><span t-esc="'{0:,.0f}'.format(int(suma)).replace(',', '.')"></span></strong>, y caso hubiera algún daño en la
-                        devolución de las mismas me comprometo a abonar el importe convenido por la empresa <strong><span t-field="o.partner_company"/></strong>.
-                    </p>
                 </div>
             </t>
         </t>

+ 481 - 0
nota_remision_standard.xml

@@ -0,0 +1,481 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data>
+
+     <report id="id_nota_remision_standard"
+        model="sale.nota.remision"
+        string="Nota Remision"
+        report_type="qweb-pdf"
+        name="nota_remision_standard.report_remision_standard"
+        file="nota_remision_standard.report_remision_standard"
+     />
+
+
+     <record id="paperformat_lowmargin" model="report.paperformat">
+        <field name="name">European A4 low margin</field>
+        <field name="default" eval="True" />
+        <field name="format">A4</field>
+        <field name="page_height">0</field>
+        <field name="page_width">0</field>
+        <field name="orientation">Portrait</field>
+        <field name="margin_top">5</field>
+        <field name="margin_bottom">1</field>
+        <field name="margin_left">2</field>
+        <field name="margin_right">0</field>
+        <field name="header_line" eval="False" />
+        <field name="header_spacing">0</field>
+        <field name="dpi">90</field>
+    </record>
+
+    <record id="nota_remision_standard.id_nota_remision_standard" model="ir.actions.report.xml">
+        <field name="paperformat_id" ref="nota_remision_standard.paperformat_lowmargin" />
+    </record>
+
+    <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="report_remision_standard">
+        <!-- <t t-call="report.html_container"> -->
+            <t t-call="report.external_layout">
+			    <t t-foreach="[1]" t-as="i">
+                <div class="page">
+                    <style type="text/css">
+                        body{
+                            font-size: 2.5mm;
+                            font-family: Arial, Helvetica, sans-serif;
+                        }
+                        div{
+                            padding: 0px;
+                        }
+                        .pagina{
+                            width:18.3cm;
+                        }
+                        .logo{
+                            height: 2.7cm;
+                            width: 100%;
+                            top: 0px;
+                        }
+                        .linea1{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .fecha_emision_data{
+                            width: 12.5cm;
+                            padding-left: 9.1cm;
+                            float: left;
+                            min-height: 0.9cm;
+                        }
+
+                        .linea2{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .razon_data{
+                            width: 10.8cm;
+                            float: left;
+                            padding-left: 6.3cm;
+                            min-height: 0.5cm;
+                        }
+                        .ruc_data{
+                            width: 7.5cm;
+                            float: right;
+                            padding-left: 2.2cm;
+                            min-height: 0.5cm;
+                        }
+
+                        .linea3{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .direccion_data{
+                            width: 12cm;
+                            float: left;
+                            padding-left: 9.3cm;
+                            min-height: 0.8cm;
+                        }
+                        .linea4{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+
+                        .motivo_data{
+                            width: 6.8cm;
+                            float: left;
+                            padding-left: 6.3cm;
+                            min-height: 0.5cm;
+                        }
+                        .comprobante{
+                            width: 9cm;
+                            float: left;
+                            padding-left: 7.3cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea5{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .comprobante_data{
+                            width: 13cm;
+                            float: left;
+                            padding-left: 7.5cm;
+                            min-height: 0.8cm;
+                        }
+
+                        .linea6{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .fecha_expedicion{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea7{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .fecha_traslado{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .fecha_estimada{
+                            width: 8cm;
+                            float: left;
+                            padding-left: 7.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea8{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .direccion_punto{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea9{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .ciudad_partida{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .departamento_partida{
+                            width: 8cm;
+                            float: left;
+                            padding-left: 7.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea10{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .direccion_llegada{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea11{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .ciudad_llegada{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .departamento_llegada{
+                            width: 8cm;
+                            float: left;
+                            padding-left: 7.5cm;
+                            min-height: 0.5cm;
+                        }
+
+                        .linea12{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .km_recorrido{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea13{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .cambio_fecha{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea14{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .cambio_motivo{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea15{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .marca_vehiculo{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea16{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .registro_unico{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea17{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .registro_tracto{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+
+                        .linea18{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .nombre_conductor{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .ruc_conductor{
+                            width: 8cm;
+                            float: left;
+                            padding-left: 7.5cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea19{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .domicilio_conductor{
+                            width: 8.3cm;
+                            float: left;
+                            padding-left: 2.5cm;
+                            min-height: 0.5cm;
+                        }
+
+
+                        .cab-articulos{
+                            height: 0.7cm;
+                            clear: both;
+                        }
+                        .articulos{
+                            height: 3.65cm;
+                        }
+                        .art-col1{
+                            width:1.9cm;
+                            text-align: center;
+                        }
+                        .art-col2{
+						    padding-left: 1.2cm;
+                            width:1cm;
+                            text-align: center;
+                        }
+                        .art-col3{
+                            padding-left: 1cm;
+                            width:11.4cm;
+                        }
+
+                    </style>
+                    <t t-foreach="docs" t-as="o">
+                        <div class="pagina">
+                            <div class="logo"> </div>
+                            <div class="linea1">
+                                <div class="fecha_emision_data"><span t-field="o.initial_transfer_date"  t-field-options='{"format": "dd MMMM yyyy"}'/></div>
+                            </div>
+
+                            <div class="linea2">
+                                <div class="razon_data"><span t-field="o.partner_id"/></div>
+                                <div class="ruc_data"><span t-field="o.partner_ruc"/></div>
+                            </div>
+
+                            <div class="linea3">
+                                <div class="direccion_data">
+                                    <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
+                                    <t t-f="not o.partner_id.street"> </t>
+                                </div>
+                            </div>
+
+                            <div class="linea4">
+                                <div class="motivo_data">
+                                    <t t-if="o.is_sale">
+                                        <span>Venta</span>
+                                    </t>
+                                    <t t-if="o.is_export">
+                                        <span>Exportación</span>
+                                    </t>
+                                    <t t-if="o.is_consignment">
+                                        <span>Consignación</span>
+                                    </t>
+                                    <t t-if="o.is_intertal_transfer">
+                                        <span>Traslado entre locales de la misma empresa</span>
+                                    </t>
+                                    <t t-if="o.is_repair_transfer">
+                                        <span>Traslado de Bienes para Reparación</span>
+                                    </t>
+                                    <t t-if="o.is_exhibition">
+                                        <span>Exhibición, demostración</span>
+                                    </t>
+                                    <t t-if="o.is_purchase">
+                                        <span>Compra</span>
+                                    </t>
+                                    <t t-if="o.is_import">
+                                        <span>Importación</span>
+                                    </t>
+                                    <t t-if="o.is_return">
+                                        <span>Devolución</span>
+                                    </t>
+                                    <t t-if="o.is_transformation_transfer">
+                                        <span>Traslado de Bienes para la Transformación</span>
+                                    </t>
+                                    <t t-if="o.is_movil_transfer">
+                                        <span>Traslado por Emisión móvil</span>
+                                    </t>
+                                    <t t-if="o.is_fair">
+                                        <span>Participación en Ferias</span>
+                                    </t>
+                                </div>
+                                <div class="comprobante"><span t-field="o.name"/></div>
+                            </div>
+						    <div class="linea5">
+                                <div class="comprobante_data"> <span t-field="o.name"/>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                                &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
+                                <span t-field="o.name"/></div>
+                            </div>
+                            <div class="linea6">
+                                <div class="fecha_expedicion"> <span t-field="o.initial_transfer_date"/></div>
+                            </div>
+                            	<!-- <div class="linea7">
+                                <div class="fecha_traslado"> <span t-field="o.initial_transfer_date"/></div>
+                                <div class="fecha_estimada"><span t-field="o.finish_transfer_date"/></div>
+                            </div>
+                            <div class="linea8">
+                                <div class="direccion_punto"><span t-field="o.partner_company.street"/></div>
+                            </div>
+                            <div class="linea9">
+                                <div class="ciudad_partida"><span t-field="o.partner_company.city"/></div>
+                                <div class="departamento_partida"> </div>
+                            </div>
+                            <div class="linea10">
+                                <div class="direccion_llegada"><span t-field="o.partner_id.street"/></div>
+                            </div>
+                            <div class="linea11">
+                                <div class="ciudad_llegada"><span t-field="o.partner_id.city"/></div>
+                                <div class="departamento_llegada"> </div>
+                            </div>
+                            <div class="linea12">
+                                <div class="km_recorrido"> </div>
+
+                            </div>
+                            <div class="linea13">
+                                <div class="cambio_fecha"> </div>
+
+                            </div>
+                            <div class="linea14">
+                                <div class="cambio_motivo"> </div>
+                            </div>
+                            <div class="linea15">
+                                <div class="marca_vehiculo"> <span t-field="o.vehicle_name"/></div>
+
+                            </div>
+                            <div class="linea16">
+                                <div class="registro_unico"> <span t-field="o.vehicle_plate"/></div>
+                            </div>
+                            <div class="linea17">
+                                <div class="registro_tracto"> <span t-field="o.vehicle_plate"/></div>
+                            </div>
+
+                            <div class="linea18">
+                                <div class="nombre_conductor"> <span t-field="o.user_id"/></div>
+                                <div class="ruc_conductor"><span t-field="o.logistic_ruc"/></div>
+                            </div>
+
+                            <div class="linea19">
+                                <div class="domicilio_conductor"> <span t-field="o.driver_id.street"/> <span t-field="o.driver_id.street2"/></div>
+                            </div>
+
+                            <div class="cab-articulos"> </div>
+                            <div class="articulos">
+                                <table class="tab-articulos">
+                                    <tr t-foreach="o.nota_line" t-as="l">
+                                        <td class="art-col1"><span t-esc="'{0:,.0f}'.format(l.quantity)"/></td>
+                                        <td class="art-col2"><span t-field="l.product_id.uom_id"/></td>
+                                        <td class="art-col3"><span t-field="l.product_id.name"/></td>
+                                   </tr>
+                                </table>
+                            </div> -->
+                        </div>
+
+                    </t>
+                </div>
+				</t>
+            </t>
+        <!-- </t> -->
+    </template>
+
+</data>
+</openerp>