ソースを参照

Impresión factura común Apis

sebas 4 年 前
コミット
2765a76e2f
8 ファイル変更868 行追加0 行削除
  1. 19 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 38 0
      __openerp__.py
  4. 38 0
      factura_comun_apis.py
  5. 374 0
      factura_comun_apis.xml
  6. 399 0
      factura_venta_apis.xml
  7. BIN
      static/description/icon.png
  8. BIN
      static/img/kava.png

+ 19 - 0
__init__.py

@@ -0,0 +1,19 @@
+# -*- encoding: utf-8 -*-
+#################################################################################
+#                                                                               #
+#    This program is free software: you can redistribute it and/or modify       #
+#    it under the terms of the GNU Affero General Public License as             #
+#    published by the Free Software Foundation, either version 3 of the         #
+#    License, or (at your option) any later version.                            #
+#                                                                               #
+#    This program is distributed in the hope that it will be useful,            #
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of             #
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              #
+#    GNU Affero General Public License for more details.                        #
+#                                                                               #
+#    You should have received a copy of the GNU Affero General Public License   #
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.      #
+#                                                                               #
+#################################################################################
+
+from . import factura_comun_apis

BIN
__init__.pyc


+ 38 - 0
__openerp__.py

@@ -0,0 +1,38 @@
+# -*- encoding: utf-8 -*-
+#################################################################################
+#                                                                               #
+#    This program is free software: you can redistribute it and/or modify       #
+#    it under the terms of the GNU Affero General Public License as             #
+#    published by the Free Software Foundation, either version 3 of the         #
+#    License, or (at your option) any later version.                            #
+#                                                                               #
+#    This program is distributed in the hope that it will be useful,            #
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of             #
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              #
+#    GNU Affero General Public License for more details.                        #
+#                                                                               #
+#    You should have received a copy of the GNU Affero General Public License   #
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.      #
+#                                                                               #
+#################################################################################
+
+{
+    'name': 'Factura Venta Común Apis',
+    'version': '0.1',
+    'category': 'Account',
+    'description': """
+Factura Venta Común Apis
+
+
+Formato para imprimir la Factura Venta Comun Apis
+
+    """,
+    'author': 'Eiru/Sebastian Penayo',
+    'website': 'http://www.eiru.com.py',
+    'depends': ['base','account'],
+    'data': [
+        'factura_comun_apis.xml',
+        'factura_venta_apis.xml'
+    ],
+    'installable': True,
+}

+ 38 - 0
factura_comun_apis.py

@@ -0,0 +1,38 @@
+from openerp import api, models
+import datetime
+
+
+class report_factura_apis(models.AbstractModel):
+    _name = 'report.factura_comun_apis.report_factura_apis'
+
+    @api.multi
+    def render_html(self, data=None):
+        report_obj = self.env['report']
+        report = report_obj._get_report_from_name('factura_comun_apis.report_factura_apis')
+        docargs = {
+            'doc_ids': self._ids,
+            'doc_model': report.model,
+            'docs': self.env[report.model].browse(self._ids),
+            'calcular_precio':self.calcular_precio,
+        }
+        return report_obj.render('factura_comun_apis.report_factura_apis', docargs)
+
+
+    def calcular_precio(self,precio):
+        return (precio*1.1)
+
+
+class report_presupuesto_apis(models.AbstractModel):
+    _name = 'report.factura_comun_apis.report_presupuesto_apis'
+
+    @api.multi
+    def render_html(self, data=None):
+        report_obj = self.env['report']
+        report = report_obj._get_report_from_name('factura_comun_apis.report_presupuesto_apis')
+        docargs = {
+            'doc_ids': self._ids,
+            'doc_model': report.model,
+            'docs': self.env[report.model].browse(self._ids),
+
+        }
+        return report_obj.render('factura_comun_apis.report_presupuesto_apis', docargs)

+ 374 - 0
factura_comun_apis.xml

@@ -0,0 +1,374 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data>
+
+     <report id="factura_comun_apis"
+        model="account.invoice"
+        string="Factura Comun"
+        report_type="qweb-html"
+        name="factura_comun_apis.report_factura_apis"
+        file="factura_comun_apis.report_factura_apis"
+     />
+
+     <record id="paperformat_lowmargin" model="report.paperformat">
+          <field name="name">Hoja Apis</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">1</field>
+          <field name="header_line" eval="False" />
+          <field name="header_spacing">3</field>
+          <field name="dpi">90</field>
+     </record>
+
+     <record id="factura_comun_apis.factura_comun_apis" model="ir.actions.report.xml">
+         <field name="paperformat_id" ref="factura_comun_apis.paperformat_lowmargin" />
+     </record>
+
+
+    <template id="report_factura_apis">
+        <t t-call="report.html_container">
+			    <!-- <t t-foreach="[1,2]" t-as="i"> -->
+                <div class="page">
+                    <style type="text/css">
+                        body{
+                            font-size: 3.6mm;
+                            font-family: Arial;
+                        }
+                        div{
+                            padding: 0px;
+                        }
+                        .pagina{
+                            width:19.3cm;
+                            padding-left: 2cm;
+                            padding-right: 1cm;
+                            height: 15cm;
+                        }
+                        .cabecera{
+                            width:6cm;
+                            width: 100%;
+                        }
+                        .descripcion{
+                            width: 11.2cm;
+                            font-size: 13px;
+                            padding-top: 0.2cm;
+                            float: left;
+                            min-height: 0.3cm;
+                        }
+                        .descripcion1{
+                            width: 11.2cm;
+                            font-size: 13px;
+                            padding-top: 0.2cm;
+                            float: left;
+                            min-height: 0cm;
+                        }
+
+                        .descripcion2{
+                            width: 13cm;
+                            font-size: 11px;
+                            float: left;
+                            min-height: 0cm;
+                        }
+
+                        .descripcion3{
+                            width: 15cm;
+                            font-size: 11px;
+                            float: left;
+                            min-height: 0cm;
+                        }
+                        .descripcion4{
+                            width: 15cm;
+                            font-size: 11px;
+                            float: left;
+                            min-height: 0cm;
+                        }
+                        .email{
+                            width: 13cm;
+                            font-size: 11px;
+                            float: left;
+                            min-height: 0cm;
+                        }
+                        .ciudad{
+                            width: 13cm;
+                            float: left;
+                            font-size: 11px;
+                            min-height: 0cm;
+                        }
+                        .tel{
+                            width: 13cm;
+                            float: left;
+                            font-size: 11px;
+                            min-height: 0cm;
+                        }
+                        .rucdata1{
+                            width: 13cm;
+                            float: left;
+                            font-size: 11px;
+                            min-height: 0cm;
+                        }
+                        .table-condensed>tbody>tr>td {
+                            padding: 1px !important;
+                        }
+                        .divisoria{
+                            height: 0.5cm;
+                            clear: both;
+                        }
+                        .fecha_emision_data{
+                            width: 11.5cm;
+                            float: left;
+                            min-height: 0.5cm;
+                        }
+                        .contado_x{
+                            width: 1.8cm;
+                            float: left;
+                            padding-left: 9cm;
+                            min-height: 0.5cm;
+                        }
+                        .credito_x{
+                            width: 1.8cm;
+                            float: left;
+                            padding-left: 1.6cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea2{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.5cm;
+                         }
+                        .razon_data{
+                            width: 12cm;
+                            float: left;
+                            min-height: 0.4cm;
+                        }
+                        .ruc_data{
+                            width: 5cm;
+                            float: left;
+                            min-height: 0.5cm;
+                        }
+                        .linea3{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.3cm;
+                         }
+                        .direccion_data{
+                            width: 14cm;
+                            float: left;
+                            min-height: 0.4cm;
+                        }
+                        .linea4{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.3cm;
+                         }
+                        .telefono_data{
+                            width: 10cm;
+                            float: left;
+                            min-height: 0.4cm;
+                        }
+
+                        .nota_remision_data{
+                            width: 4cm;
+                            float: left;
+                            min-height: 0.4cm;
+                        }
+
+                        .cab-articulos{
+                            height: 0.4cm;
+                            clear: both;
+                        }
+                        .articulos{
+                            height: 4.5cm;
+                            width: 14cm;
+                        }
+                        .art-col1{
+                            width:0.4cm;
+                            text-align: center;
+                        }
+                        .art-col2{
+                            padding-left: 0.8cm;
+                            width:1cm;
+                            text-align: center;
+                        }
+                        .art-col3{
+                            padding-left: 0.3cm;
+                            width:9cm;
+                        }
+                        .art-col4{
+                            width:2.8cm;
+                            text-align: right;
+                        }
+                        .art-col5{
+                            width:2.7cm;
+                            text-align: right;
+                        }
+						           .logo1{
+                            height: 1.5cm;
+                            width: 100%;
+                            top: 0px;
+                        }
+
+
+                    </style>
+                    <t t-foreach="docs" t-as="o">
+                        <div class="pagina">
+                            <div class="cabecera"> </div>
+                            <div class="divisoria"> </div>
+
+                            <div class="row">
+                                <div class="col-xs-4">
+                    								<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;"/>
+    								                </center>
+    							               </div>
+    							               <div class="col-xs-6">
+    								                  <tr>
+    									                    <div class="descripcion">
+    								                      </div>
+    								                  </tr>
+
+    								                  <tr>
+    									                    <div class="descripcion1"><b><i>APIS</i></b></div>
+    								                  </tr>
+
+    								                  <tr>
+    									                     <div class="descripcion2"><b></b></div>
+    								                  </tr>
+    								                  <tr>
+    									                      <div class="descripcion3"><b></b></div>
+    								                  </tr>
+
+    								                  <tr>
+    									                     <div class="descripcion4"><b>Calle Arcadio Garay Vera, a una cuadra de Av San José</b></div>
+    								                  </tr>
+    								                  <tr>
+    									                     <div class="email"><b>Barrio San Isidro - Ciudad del Este</b></div>
+    								                  </tr>
+    								                  <tr>
+    									                     <div class="ciudad"><b>apis.com.py</b></div>
+    								                  </tr>
+    								                  <tr>
+    									                     <div class="tel"><b>(0973) 766738</b></div>
+    								                   </tr>
+                                </div>
+                            </div>
+                            <div class="divisoria"> </div>
+                            <!-- <div style="border:0.3px solid #000;"></div> -->
+                            <div class="divisoria"> </div>
+                            <div class="linea3">
+                                <div class="fecha_emision_data"><b>Fecha de Factura: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
+                            </div>
+
+                            <div class="linea2">
+                                <div class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></div>
+                                <div class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></div>
+                            </div>
+
+                            <div class="linea3">
+                                <div class="direccion_data">
+                                    <t t-f="o.partner_id.street"><b>Direccion: </b><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="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></div>
+                            </div>
+
+                            <div class="logo1"> </div>
+                            <table class="table table-condensed table-bordered">
+                                <thead>
+                                    <tr>
+                                        <th class="art-col1">Código</th>
+                                        <th class="art-col2">Cantidad</th>
+                                        <th class="art-col3">Descripción</th>
+                                        <th class="art-col4">Prec. Unitario</th>
+                                        <th class="art-col5">Sub Total</th>
+                                    </tr>
+                               </thead>
+                               <tbody class="sale_tbody">
+                                    <tr t-foreach="o.invoice_line" t-as="l">
+                                        <td class="art-col1">
+                                            <!-- <span t-field="l.product_id.default_code"/> -->
+                                        </td>
+                                        <td class="art-col2">
+                                           <span t-esc="'%.0f'%l.quantity"/>
+                                        </td>
+                                        <td class="art-col3">
+                                           <span t-field="l.product_id.name"/>
+                                        </td>
+                                        <td class="art-col4">
+                                            <t t-if="o.currency_id.id == 166">
+                                                <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
+                                            </t>
+                                            <t t-if="o.currency_id.id != 166">
+                                                <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
+                                            </t>
+                                        </td>
+
+                                        <td class="art-col5">
+                                            <t t-if="o.currency_id.id == 166">
+                                                <span t-esc="'{0:,.0f}'.format(l.price_unit*l.quantity)"/>
+                                            </t>
+                                            <t t-if="o.currency_id.id != 166">
+                                                <span t-esc="'{0:,.2f}'.format(l.price_unit*l.quantity)"/>
+                                            </t>
+                                        </td>
+                                    </tr>
+                                </tbody>
+                            </table>
+                           <div class="logo1"> </div>
+                            <div class="row">
+                                <div class="col-xs-4 pull-right">
+                                    <table class="table table-condensed">
+                                        <tr class="border-black">
+                                            <td><strong>Total s/ IVA</strong></td>
+                                            <td class="text-right">
+                                                <t t-if="o.currency_id.id == 166">
+                                                    <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
+                                                </t>
+                                                <t t-if="o.currency_id.id != 166">
+                                                    <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
+                                                </t>
+                                            </td>
+                                        </tr>
+                                        <tr>
+                                            <td>IVA</td>
+                                            <td class="text-right">
+                                                <t t-if="o.currency_id.id == 166">
+                                                    <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
+                                                </t>
+                                                <t t-if="o.currency_id.id != 166">
+                                                    <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
+                                                </t>
+                                            </td>
+                                        </tr>
+                                        <tr class="border-black">
+                                            <td><strong>Total</strong></td>
+                                            <td class="text-right">
+                                                <t t-if="o.currency_id.id == 166">
+                                                    <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
+                                                </t>
+                                                <t t-if="o.currency_id.id != 166">
+                                                    <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
+                                                </t>
+                                            </td>
+                                        </tr>
+                                    </table>
+                                </div>
+                            </div>
+                        </div>
+                       <!-- <div class="logo1"> </div> -->
+                    </t>
+                </div>
+				<!-- </t> -->
+
+        </t>
+    </template>
+
+</data>
+</openerp>

+ 399 - 0
factura_venta_apis.xml

@@ -0,0 +1,399 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data>
+
+     <report id="factura_venta_apis"
+         model="sale.order"
+         string="Presupuesto de Venta"
+        report_type="qweb-html"
+        name="factura_comun_apis.report_presupuesto_apis"
+        file="factura_comun_apis.report_presupuesto_apis"
+     />
+
+     <record id="paperformat_lowmargin" model="report.paperformat">
+          <field name="name">Hoja Apis</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_apis.factura_venta_apis" model="ir.actions.report.xml">
+         <field name="paperformat_id" ref="factura_comun_apis.paperformat_lowmargin" />
+     </record>
+
+    <template id="report_presupuesto_apis">
+        <t t-call="report.html_container">
+			<t t-foreach="[1]" t-as="i">
+                <div class="page">
+                    <style type="text/css">
+                        body{
+                            font-size: 3mm;
+                            font-family: Arial;
+                        }
+                        div{
+                            padding: 0px;
+                        }
+                        .pagina{
+                            width:19.3cm;
+                        }
+                        .cabecera{
+                            width:6cm;
+                            width: 100%;
+                        }
+                        .descripcion{
+                            width: 0.3cm;
+                            font-size: 13px;
+                            padding-top: 0.2cm;
+                            float: left;
+                            min-height: 0cm;
+                        }
+                        .descripcion1{
+                            width: 11.2cm;
+                            font-size: 13px;
+                            padding-top: 0.2cm;
+                            float: left;
+                            min-height: 0cm;
+                        }
+
+                        .descripcion2{
+                            width: 13cm;
+                            font-size: 10px;
+                            float: left;
+                            min-height: 0cm;
+                        }
+
+                        .descripcion3{
+                            width: 15cm;
+                            font-size: 10px;
+                            float: left;
+                            min-height: 0cm;
+                        }
+                        .descripcion4{
+                            width: 15cm;
+                            font-size: 10px;
+                            float: left;
+                            min-height: 0cm;
+                        }
+
+                        .email{
+                            width: 13cm;
+                            font-size: 10px;
+                            float: left;
+                            min-height: 0cm;
+                        }
+
+                        .ciudad{
+                            width: 13cm;
+                            float: left;
+                            font-size: 10px;
+                            min-height: 0cm;
+                        }
+                        .tel{
+                            width: 13cm;
+                            float: left;
+                            font-size: 10px;
+                            min-height: 0cm;
+                        }
+                        .table-condensed>tbody>tr>td {
+                            padding: 1px !important;
+                        }
+                        .divisoria{
+                            height: 0.5cm;
+                            clear: both;
+                        }
+                        .linea{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.4cm;
+                         }
+                        .presu_name{
+                            width: 10cm;
+                            float: left;
+                            padding-left: 9.9cm;
+                            min-height: 0.5cm;
+                        }
+                        .fecha_emision_data{
+                            width: 11.5cm;
+                            float: left;
+                            min-height: 0.5cm;
+                        }
+                        .contado_x{
+                            width: 1.8cm;
+                            float: left;
+                            padding-left: 9cm;
+                            min-height: 0.5cm;
+                        }
+                        .credito_x{
+                            width: 1.8cm;
+                            float: left;
+                            padding-left: 1.6cm;
+                            min-height: 0.5cm;
+                        }
+                        .linea2{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.5cm;
+                         }
+                        .razon_data{
+                            width: 12cm;
+                            float: left;
+                            min-height: 0.4cm;
+                        }
+                        .ruc_data{
+                            width: 5cm;
+                            float: left;
+                            min-height: 0.5cm;
+                        }
+
+                        .linea3{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.3cm;
+                         }
+                        .direccion_data{
+                            width: 14cm;
+                            float: left;
+                            min-height: 0.4cm;
+                        }
+                        .linea4{
+                            position: relative;
+                            top: -0.12cm;
+                            min-height: 0.3cm;
+                         }
+                        .telefono_data{
+                            width: 7cm;
+                            float: left;
+                            min-height: 0.4cm;
+                        }
+
+                        .origin{
+                            width: 6cm;
+                            float: left;
+                            min-height: 0.4cm;
+                        }
+
+                        .referencia{
+                            width: 7cm;
+                            float: left;
+                            min-height: 0.4cm;
+                        }
+
+                        .cab-articulos{
+                            height: 0.4cm;
+                            clear: both;
+                        }
+                        .articulos{
+                            height: 4.5cm;
+                        }
+                        .art-col1{
+                            width:0.4cm;
+                            text-align: center;
+                        }
+                        .art-col2{
+                            padding-left: 0.8cm;
+                            width:1cm;
+                            text-align: center;
+                        }
+                        .art-col3{
+                            padding-left: 0.3cm;
+                            width:9cm;
+                        }
+                        .art-col4{
+                            width:2.8cm;
+                            text-align: right;
+                        }
+                        .art-col5{
+                            width:2.7cm;
+                            text-align: right;
+                        }
+						.logo1{
+                            height: 2cm;
+                            width: 100%;
+                            top: 0px;
+                        }
+
+
+                    </style>
+                    <t t-foreach="docs" t-as="o">
+                        <div class="pagina">
+                            <div class="cabecera"> </div>
+                            <div class="divisoria"> </div>
+                            <!-- <div style="border:0.3px solid #000;"></div> -->
+                            <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="divisoria"> </div>
+                            <!-- <div class="row">
+                                <div class="col-xs-6">
+    								<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;"/>
+    								</center>
+    							</div>
+    							<div class="col-xs-6">
+
+    								<tr>
+    									<div class="descripcion">
+    									</div>
+    								</tr>
+
+    								<tr>
+    									<div class="descripcion1"><b><i>Pirka Stone</i></b></div>
+    								</tr>
+
+    								<tr>
+    									<div class="descripcion2"><b></b></div>
+    								</tr>
+    								<tr>
+    									<div class="descripcion3"><b></b></div>
+    								</tr>
+
+    								<tr>
+    									<div class="descripcion4"><b>Charles de Gaulle y Toribio Pacheco</b></div>
+    								</tr>
+    								<tr>
+    									<div class="email"><b>Barrio Villa Morra - Asunción</b></div>
+    								</tr>
+    								<tr>
+    									<div class="ciudad"><b>admasuncion@pirkastone.com.py</b></div>
+    								</tr>
+    								<tr>
+    									<div class="tel"><b>(0982) 129 225</b></div>
+    								</tr>
+    								<tr>
+    									<div class="rucdata1"><b>R.U.C. N° 80106935-1 </b></div>
+    								</tr>
+                                </div>
+
+                            </div> -->
+                            <div class="divisoria"> </div>
+                            <!-- <div style="border:0.3px solid #000;"></div> -->
+                            <div class="divisoria"> </div>
+
+                            <div class="linea">
+                                <div class="presu_name"><b>PRESUPUESTO N°: </b><span t-field="o.name"/></div>
+                            </div>
+
+                            <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>
+
+                            <div class="linea2">
+                                <div class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></div>
+                                <div class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></div>
+                            </div>
+
+                            <div class="linea3">
+                                <div class="direccion_data">
+                                    <t t-f="o.partner_id.street"><b>Direccion: </b><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="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></div>
+                            </div>
+
+
+                            <table class="table table-condensed table-bordered">
+                                <thead>
+                                    <tr>
+                                        <th class="art-col1">Código</th>
+                                        <th class="art-col2">Cantidad</th>
+                                        <th class="art-col3">Descripción</th>
+                                        <th class="art-col4">Prec. Unitario</th>
+                                        <th class="art-col5">Sub Total</th>
+                                    </tr>
+                               </thead>
+                               <tbody class="sale_tbody">
+                                    <tr t-foreach="o.order_line" t-as="l">
+                                        <td class="art-col1">
+                                            <span t-field="l.product_id.default_code"/>
+                                        </td>
+                                        <td class="art-col2">
+                                           <span t-esc="'%.0f'%l.product_uom_qty"/>
+                                        </td>
+                                        <td class="art-col3">
+                                           <span t-field="l.product_id.name"/>
+                                        </td>
+                                        <td class="art-col4">
+                                            <t t-if="o.currency_id.id == 166">
+                                                <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
+                                            </t>
+                                            <t t-if="o.currency_id.id != 166">
+                                                <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
+                                            </t>
+                                        </td>
+
+                                        <td class="art-col5">
+                                            <t t-if="o.currency_id.id == 166">
+                                                <span t-esc="'{0:,.0f}'.format(l.price_unit*l.product_uom_qty)"/>
+                                            </t>
+                                            <t t-if="o.currency_id.id != 166">
+                                                <span t-esc="'{0:,.2f}'.format(l.price_unit*l.product_uom_qty)"/>
+                                            </t>
+                                        </td>
+                                    </tr>
+                                </tbody>
+                            </table>
+
+                            <div class="row">
+                                <div class="col-xs-4 pull-right">
+                                    <table class="table table-condensed">
+                                        <tr class="border-black">
+                                            <td><strong>Total s/ IVA</strong></td>
+                                            <td class="text-right">
+                                                <t t-if="o.currency_id.id == 166">
+                                                    <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
+                                                </t>
+                                                <t t-if="o.currency_id.id != 166">
+                                                    <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
+                                                </t>
+                                            </td>
+                                        </tr>
+                                        <tr>
+                                            <td>IVA</td>
+                                            <td class="text-right">
+                                                <t t-if="o.currency_id.id == 166">
+                                                    <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
+                                                </t>
+                                                <t t-if="o.currency_id.id != 166">
+                                                    <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
+                                                </t>
+                                            </td>
+                                        </tr>
+                                        <tr class="border-black">
+                                            <td><strong>Total</strong></td>
+                                            <td class="text-right">
+                                                <t t-if="o.currency_id.id == 166">
+                                                    <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
+                                                </t>
+                                                <t t-if="o.currency_id.id != 166">
+                                                    <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
+                                                </t>
+                                            </td>
+                                        </tr>
+                                    </table>
+                                </div>
+                            </div>
+                        </div>
+                       <!-- <div class="logo1"> </div> -->
+                    </t>
+                </div>
+			</t>
+        </t>
+    </template>
+
+</data>
+</openerp>

BIN
static/description/icon.png


BIN
static/img/kava.png