浏览代码

[ADD] Commit inicial

adrielso 7 年之前
当前提交
9c6ffc6e7b
共有 8 个文件被更改,包括 383 次插入0 次删除
  1. 6 0
      README.md
  2. 1 0
      __init__.py
  3. 二进制
      __init__.pyc
  4. 20 0
      __openerp__.py
  5. 124 0
      i18n/ar.po
  6. 126 0
      i18n/es.po
  7. 92 0
      views/voucher_report.xml
  8. 14 0
      voucher_print_report.xml

+ 6 - 0
README.md

@@ -0,0 +1,6 @@
+dvit-odoo8
+============
+
+Module for Odoo8 adds print option to account_voucher.
+
+For support, Plz contact us: http://dvit.me/

+ 1 - 0
__init__.py

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

二进制
__init__.pyc


+ 20 - 0
__openerp__.py

@@ -0,0 +1,20 @@
+{
+    'name': 'voucher Print',
+    'version': '8.0.1.0',
+    'category': 'Accounting',
+        'sequence': 1,
+    'summary': "Print of payments",
+    'description':"Print of payments",
+    'author': 'DVIT.ME',
+    'website': 'http://dvit.me',
+    'website': 'http://www.dvit.me',
+    'depends': ['account_voucher'],
+    'data': [
+        'views/voucher_report.xml',
+        'voucher_print_report.xml',
+    ],
+    'installable': True,
+    'auto_install': False,
+}
+
+

+ 124 - 0
i18n/ar.po

@@ -0,0 +1,124 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+#	* voucher_print
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 8.0-20150526\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-06-19 02:04+0000\n"
+"PO-Revision-Date: 2015-06-19 02:04+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "- \n"
+"        			Address:"
+msgstr "- \n"
+"        			العنوان:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "- Address:"
+msgstr "- العنوان:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid ".................."
+msgstr ".................."
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "......................."
+msgstr "......................."
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Accountant:"
+msgstr "محاسب:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Amount of"
+msgstr "مبلغاً قدره"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Manager:"
+msgstr "المدير:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "No."
+msgstr "رقم"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Notes:"
+msgstr "ملاحظات:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Paid by:"
+msgstr "مدفوع بواسطة:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Paid to"
+msgstr "دفعنا الى"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Paid to:"
+msgstr "مدفوع الى:"
+
+#. module: voucher_print
+#: model:ir.actions.report.xml,name:voucher_print.voucher_ext
+msgid "Payment"
+msgstr "سند"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Payment Date:"
+msgstr "تاريخ الدفع:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Payment Voucher"
+msgstr "سند دفع"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Payment method"
+msgstr "طريقة الدفع"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Receipt Voucher"
+msgstr "سند قبض"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Received from"
+msgstr "إستلمنا من"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Reference/Description:"
+msgstr "مرجع/وصف:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Responsible:"
+msgstr "مسؤل:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "With Reference/as value of"
+msgstr "المرجع / مقابل"
+

+ 126 - 0
i18n/es.po

@@ -0,0 +1,126 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# 	* voucher_print
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 8.0-20150526\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-06-19 02:04+0000\n"
+"PO-Revision-Date: 2016-08-31 15:46-0600\n"
+"Last-Translator: <>\n"
+"Language-Team: Ark74\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.5.4\n"
+"Language: Spanish\n"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid ""
+"- \n"
+"        \t\t\tAddress:"
+msgstr ""
+"- \n"
+"        \t\t\tDirección:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "- Address:"
+msgstr "- Dirección:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid ".................."
+msgstr "_______________________"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "......................."
+msgstr "_______________________"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Accountant:"
+msgstr "Cuenta:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Amount of"
+msgstr "La cantidad de"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Manager:"
+msgstr "Administrador:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "No."
+msgstr "No."
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Notes:"
+msgstr "Observaciones"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Paid by:"
+msgstr "Pagado por:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Paid to"
+msgstr "Pagado a"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Paid to:"
+msgstr "Pagado a:"
+
+#. module: voucher_print
+#: model:ir.actions.report.xml,name:voucher_print.voucher_ext
+msgid "Payment"
+msgstr "Pago"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Payment Date:"
+msgstr "Fecha de pago:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Payment Voucher"
+msgstr "Comprobante de Pago"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Payment method"
+msgstr "Método de pago"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Receipt Voucher"
+msgstr "Recibo de Comprobante"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Received from"
+msgstr "Recibio de"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Reference/Description:"
+msgstr "Referencia/Descripción"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "Responsible:"
+msgstr "Responsable:"
+
+#. module: voucher_print
+#: view:website:voucher_print.report_voucher_document
+msgid "With Reference/as value of"
+msgstr "Con referencia/como valor de"

+ 92 - 0
views/voucher_report.xml

@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data>
+<template id="report_voucher_document">
+	    <!-- <t t-call="report.external_layout"> -->
+	  <t t-foreach="docs" t-as="o">
+        <div class="page" style="margin:10px; padding:10px; border:3px solid #ccc; border-radius:10px;">
+        	<h3 style="text-align:center;">
+        		<span t-if="o.type == 'receipt'">Receipt Voucher</span>
+        		<span t-if="o.type == 'payment'">Payment Voucher</span>
+        		<span t-if="o.number">No. <span t-field="o.number"/></span>
+        	</h3>
+
+        	    <div class="row">
+					<div class="col-xs-9">
+                    <p><strong>
+                    <span t-if="o.type == 'receipt'">Paid by:</span>
+                    <span t-if="o.type == 'payment'">Paid to:</span>
+                    </strong>
+                    <span t-field="o.partner_id"/> - Address:
+                     <span t-field="o.partner_id.contact_address"/></p>
+                	</div>
+					<div class="col-xs-9">
+                    <p><strong>
+                    <span t-if="o.type == 'receipt'">Paid to:</span>
+                    <span t-if="o.type == 'payment'">Paid by:</span>
+                    </strong>
+                    <span t-field="o.company_id"/> - Address:
+                     <span t-field="o.company_id.partner_id.contact_address"/></p>
+                	</div>
+        	    	<div class="col-xs-4">
+                    <strong>Payment Date:</strong>
+                    <p t-field="o.date"/>
+                	</div>
+                <div class="col-xs-4">
+                    <strong>Reference/Description:</strong>
+                    <p t-field="o.reference"/>
+                </div>
+            </div>
+             <hr size="4" width="90%"></hr>
+        	<div>
+        		<p>
+        		<span t-if="o.type == 'receipt'">Received from</span>
+        		<span t-if="o.type == 'payment'">Paid to</span>
+        		<strong><span t-field="o.partner_id"/></strong> - Address:
+        		<span t-field="o.partner_id.contact_address"/></p>
+        		 <p>Amount of
+					<strong>
+						<span t-field="o.currency_id.symbol"/>
+						<span t-field="o.amount"/>
+					</strong>
+        		  Payment method <strong><span t-field="o.journal_id"/></strong>
+        		  <span t-if="o.reference">
+        		  With Reference/as value of <strong><span t-field="o.reference"/>
+        		  </strong></span>
+        		  </p>
+        	</div>
+        	<div>
+        		<!-- <span t-if="o.narration"> -->
+        		<p><strong>Notes:</strong> <span t-field="o.narration"/></p>
+        		<!-- </span> -->
+        	</div>
+        	             <hr size="4" width="90%"></hr>
+        	 <div class="row" style="text-align:center;">
+					<div class="col-xs-4">
+                    <strong>Responsible:</strong>
+                    <p>.......................</p>
+                	</div>
+					<div class="col-xs-4">
+                    <strong>Accountant:</strong>
+                    <p t-field="o.create_uid"/>
+                	</div>
+        	    	<div class="col-xs-4">
+                    <strong>Manager:</strong>
+                    <p>..................</p>
+                	</div>
+               </div>
+        </div>
+      </t>
+            <!-- </t> -->
+
+</template>
+
+<template id="report_voucher">
+    <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.report_voucher_document')"/>
+        </t>
+    </t>
+</template>
+</data>
+</openerp>

+ 14 - 0
voucher_print_report.xml

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+<report 
+            id="voucher_ext"
+            model="account.voucher"
+            string="Payment"
+            report_type="qweb-pdf"
+            name="voucher_print.report_voucher"
+            attachment_use="False"
+            file="voucher_print"
+        />
+    </data>
+</openerp>