Quellcode durchsuchen

ADD Impresión de recibo de cobro bio electric

Sebas vor 6 Jahren
Commit
128e599d62

+ 1 - 0
__init__.py

@@ -0,0 +1 @@
+#

BIN
__init__.pyc


+ 17 - 0
__openerp__.py

@@ -0,0 +1,17 @@
+{
+    'name': 'Impresión de Recibo de Pago',
+    'version': '8.0.1.0',
+    'category': 'Accounting',
+        'sequence': 1,
+    'summary': "Recibo de Pago",
+    'description':"Módulo para impresión de recibo de pago para Bioelectric una opción de impresión en account_voucher.",
+    'author': 'Sebastian Penayo/ Eiru',
+    'website': '',
+    'depends': ['account_voucher'],
+    'data': [
+        'views/voucher_report_bioelectric.xml',
+        'voucher_print_report_bioelectric.xml',
+    ],
+    'installable': True,
+    'auto_install': False,
+}

BIN
static/description/icon.png


+ 213 - 0
views/voucher_report_bioelectric.xml

@@ -0,0 +1,213 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data>
+	<template id="report_voucher_document_bioelectric">
+		<t t-call="report.html_container">
+			<div class="page">
+            	<t t-foreach="[1,2]" t-as="i">
+                    <style type="text/css">
+                        body{
+                            font-size: 3mm;
+                            font-family: Arial, Helvetica, sans-serif;
+                        }
+                        div{
+                            padding: 0px;
+                        }
+                        .pagina{
+                            width:19.3cm;
+                        }
+                        .descripcion1{
+                            width: 11.2cm;
+							font-size: 13px;
+							padding-top: 0.2cm;
+                            padding-left: 0.5cm;
+                            float: left;
+                            min-height: 0cm;
+                        }
+
+                        .descripcion2{
+                            width: 13cm;
+							font-size: 10px;
+                            float: left;
+                            padding-left: 0.5cm;
+                            min-height: 0cm;
+                        }
+
+                        .descripcion3{
+                            width: 15cm;
+							font-size: 10px;
+                            float: left;
+                            padding-left: 0.5cm;
+                            min-height: 0cm;
+                        }
+						.descripcion4{
+							width: 15cm;
+							font-size: 10px;
+							padding-left: 0.5cm;
+							float: left;
+							min-height: 0cm;
+						}
+
+						.email{
+							width: 13cm;
+							font-size: 10px;
+							float: left;
+							padding-left: 0.5cm;
+							min-height: 0cm;
+						}
+
+						.ciudad{
+							width: 13cm;
+							float: left;
+						    font-size: 10px;
+							padding-left: 0.5cm;
+							min-height: 0cm;
+						}
+						.tel{
+							width: 13cm;
+							float: left;
+							font-size: 10px;
+							padding-left: 0.5cm;
+							min-height: 0cm;
+						}
+						.divisoria{
+							height: 0.5cm;
+							clear: both;
+						}
+						.divisoria2{
+							height: 4cm;
+							clear: both;
+						}
+						.divisoria3{
+							height: 1cm;
+							clear: both;
+						}
+						.divisoria5{
+							width: 23cm;
+							float: left;
+							font-size: 11px;
+							padding-left: 0.5cm;
+							min-height: 0cm;
+						}
+
+                    </style>
+
+					<tr>
+						<div class="descripcion1"><b>BIOELECTRIC</b></div>
+					</tr>
+
+					<tr>
+						<div class="descripcion2"><b>SOLUCIONES ELECTROMECÁNICAS</b></div>
+					</tr>
+					<tr>
+						<div class="descripcion3"><b>SERVICIOS ELÉCTRICOS 24 hs. - MONTAJES INDUSTRIALES - MONTAJES INDUSTRIALES</b></div>
+					</tr>
+
+					<tr>
+						<div class="descripcion4"><b>AUTOMATIZACIONES - REFRIGERACIÓN, CCTV, SPLIT</b></div>
+					</tr>
+					<tr>
+						<div class="email"><b>bioelectricpy@gmail.com</b></div>
+					</tr>
+					<tr>
+						<div class="ciudad"><b>SAN ANTONIO - PARAGUAY</b></div>
+					</tr>
+					<tr>
+						<div class="tel"><b>(0981) 939132 - (0984) 120 678</b></div>
+					</tr>
+
+
+					<div style="border:3px solid #ccc; border-radius:10px;">
+
+						<h3 style="text-align:center;">
+		        			<span t-if="o.type == 'receipt'"> Recibo de Cobro</span>
+		        			<span t-if="o.type == 'payment'"> Recibo de Pago</span>
+		        			<span t-if="o.number"> No. <span t-field="o.number"/></span>
+		        		</h3>
+						<div class="divisoria"></div>
+						<div class="divisoria5">
+			        	    <div class="row">
+								<div class="col-xs-9">
+			                    	<p><strong>
+			                    	<span t-if="o.type == 'receipt'"> Cobrado a:</span>
+			                    	<span t-if="o.type == 'payment'"> Pagado a:</span>
+			                    	</strong>
+			                    	<span t-field="o.partner_id"/> - Dirección:
+			                     	<span t-field="o.partner_id.contact_address"/></p>
+			                	</div>
+								<div class="col-xs-9">
+			                    	<p><strong>
+			                    	<span t-if="o.type == 'receipt'"> Cobrado por:</span>
+			                    	<span t-if="o.type == 'payment'"> Pagado por:</span>
+			                    	</strong>
+			                    	<span t-field="o.company_id"/> - Dirección:
+			                     	<span t-field="o.company_id.partner_id.contact_address"/></p>
+			                	</div>
+			        	    	<div class="col-xs-4">
+			                    	<p><strong> <span t-if="o.type == 'receipt'"> Fecha de Cobro:</span><span t-if="o.type == 'payment'"> Fecha de Pago:</span></strong> <span t-field="o.date"/></p>
+			                	</div>
+			                	<div class="col-xs-4">
+			                    	<p><strong> Referencia/Descripción:</strong><span t-field="o.reference"/></p>
+			                	</div>
+			            	</div>
+					    </div>
+		             	<hr size="4" width="90%"></hr>
+		        		<div class="divisoria5">
+		        			<p>
+		        			<span t-if="o.type == 'receipt'"> Recibi(mos) de</span>
+		        			<span t-if="o.type == 'payment'"> Pagado a</span>
+		        			<strong><span t-field="o.partner_id"/></strong> - R.U.C. N°:
+							<span t-field="o.partner_id.ruc"/> Dirección:
+		        			<span t-field="o.partner_id.contact_address"/></p>
+		        		 	<p> Monto de
+								<strong>
+									<span t-field="o.currency_id.symbol"/>
+									<t t-if="o.currency_id.id == 166">
+										<span t-esc="'{0:,.0f}'.format(o.amount)"/>
+									</t>
+									<t t-if="o.currency_id.id != 166">
+										<span t-esc="'{0:,.0f}'.format(o.amount)"/>
+									</t>
+								</strong>
+		        		  	Método de <strong><span t-field="o.journal_id"/></strong>
+		        		  	<span t-if="o.reference">
+		        		  	con Referencia/s valor de <strong><span t-field="o.reference"/>
+		        		  	</strong></span>
+		        		  	</p>
+		        		</div>
+		        		<div class="divisoria5">
+		        			<p><strong> Notas:</strong> <span t-field="o.narration"/></p>
+		        		</div>
+
+		        	    <hr size="4" width="90%"></hr>
+						<div class="divisoria5">
+					 		<table width="50%">
+				            	<tr>
+				                	<td width="10%"><strong> Cliente:</strong></td>
+				                	<td width="20%">................................................</td>
+									<td width="10%">&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</td>
+				                	<td width="10%"><strong>    Cobrador:</strong></td>
+				                	<td width="20%">.................................................</td>
+									<td width="10%">&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</td>
+									<td width="10%"><strong>Sello</strong></td>
+								</tr>
+				            	<br>
+				            	</br>
+				     		</table>
+						</div>
+						<div class="divisoria3"></div>
+					</div>
+					<div class="divisoria2"></div>
+				</t>
+			</div>
+		</t>
+	</template>
+		<template id="report_voucher_bioelectric">
+			<t t-call="report.html_container">
+		    	<t t-foreach="doc_ids" t-as="doc_id">
+		        	<t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'voucher_print_bioelectric.report_voucher_document_bioelectric')"/>
+		    	</t>
+			</t>
+		</template>
+</data>
+</openerp>

+ 14 - 0
voucher_print_report_bioelectric.xml

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+        <report
+            id="voucher_bioelectric"
+            model="account.voucher"
+            string="Recibo Común"
+            report_type="qweb-pdf"
+            name="voucher_print_bioelectric.report_voucher_bioelectric"
+            attachment_use="False"
+            file="voucher_print_bioelectric"
+        />
+    </data>
+</openerp>