Преглед на файлове

commit informes_hr_expense

sebas преди 8 години
ревизия
5745d623e7
променени са 7 файла, в които са добавени 163 реда и са изтрити 0 реда
  1. 27 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 45 0
      __openerp__.py
  4. 0 0
      informe_expense.py
  5. BIN
      informe_expense.pyc
  6. 91 0
      informe_expense.xml
  7. BIN
      static/description/icon.png

+ 27 - 0
__init__.py

@@ -0,0 +1,27 @@
+# -*- encoding: utf-8 -*-
+#################################################################################
+#                                                                               #
+#    product_brand for OpenERP                                                  #
+#    Copyright (C) 2009 NetAndCo (<http://www.netandco.net>).                   #
+#    Authors, Mathieu Lemercier, mathieu@netandco.net,                          #
+#             Franck Bret, franck@netandco.net                                  #
+#    Copyright (C) 2011 Akretion Benoît Guillot <benoit.guillot@akretion.com>   #
+#                                                                               #
+#    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/>.      #
+#                                                                               #
+#################################################################################
+###################################################################################
+# Report HR#
+###################################################################################
+from . import informe_expense

BIN
__init__.pyc


+ 45 - 0
__openerp__.py

@@ -0,0 +1,45 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    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': 'Informe de Gastos de Empleados',
+    'version': '1.1',
+    'category': 'HR',
+    'sequence': 19,
+    'summary': 'Informe de Gastos de Empleados',
+    'description': """
+Informe de Gastos de Empleados
+==================================================
+
+Informe de Gastos de Empleados
+
+
+    """,
+    'author': 'Eiru/Sebastian Penayo',
+    'website': 'http://www.paraguayenlaweb.com',
+    'depends': ['base','hr'],
+    'data': [
+        'informe_expense.xml',
+    ],
+    'installable': True,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 0 - 0
informe_expense.py


BIN
informe_expense.pyc


+ 91 - 0
informe_expense.xml

@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data>
+		<report
+            id="report_hr_expense_id"
+            string="Gastos HR Generales"
+            model="hr.expense.expense"
+            report_type="qweb-pdf"
+            name="informes_hr_expense.report_gastogral"
+            file="informes_hr_expense.report_gastogral"
+        />
+  <template id="report_gastogral">
+    <t t-call="report.html_container">
+          <t t-call="report.external_layout">
+            <div class="page">
+				<style type="text/css">
+						.crm_tcab{
+                            font-size: 3mm;
+                            font-family: Arial, Helvetica, sans-serif;
+                        }
+						
+                        .sale_tbody{
+                            font-size: 2.8mm;
+                            font-family: Arial, Helvetica, sans-serif;
+                        }
+                        .taxtotal{
+                            font-size: 2.8mm;
+                        }
+						.total{
+                            font-size: 2.8mm;
+                        }
+						.untotal{
+                            font-size: 2.8mm;
+                        }
+						.logo1{
+                            width: 100%;
+                            top: 1.5cm;
+                        }
+                        
+				</style>
+			    <h4 class="text-center">Listado de Gastos Generales</h4> 
+                <div class="logo1"> </div>
+				<table class="table table-bordered">
+					<thead class="crm_tcab">
+						<tr class="active">
+							<th class="text-center">Empleado/a</th>
+							<th class="text-center">Fecha</th>
+							<th class="text-center">Asunto</th>
+							<th class="text-right">Total</th>
+							<th class="text-center">Estado</th>
+						</tr>
+					</thead>
+               <t t-foreach="docs" t-as="o">
+               <tbody class="sale_tbody">
+                          <td class="text-left">
+                                <span t-field="o.employee_id.name"/>
+                          </td>
+                          <td class="text-left">
+                                <span t-field="o.date"/>
+                          </td>
+                          <td class="text-left">
+                                <span t-field="o.name"/> 
+                          </td>
+                          <td class="text-right">
+                                <span t-field="o.amount"/>
+                          </td>
+                          <td class="text-right">
+                                <span t-field="o.state"/>
+                          </td>
+               </tbody>
+               </t>
+					<tr>
+						<td colspan="6"></td>
+					</tr>
+                    <tr class="border-black">
+                        <td colspan="3">Total:</td>
+						<td class="text-right">
+                            <t t-set="total" t-value="sum([x.amount for x in docs])"/>
+                            <span t-esc="total" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
+                        </td>
+					</tr>
+               
+               
+             </table>
+            </div>
+          </t>
+    </t>
+  </template>
+</data>
+</openerp>
+

BIN
static/description/icon.png