Skip to content

Commit

Permalink
Merge 859fbe2 into cd564d9
Browse files Browse the repository at this point in the history
  • Loading branch information
hugosantosred committed Feb 23, 2015
2 parents cd564d9 + 859fbe2 commit 34d6de1
Show file tree
Hide file tree
Showing 11 changed files with 697 additions and 0 deletions.
3 changes: 3 additions & 0 deletions account_invoice_export_xls/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import models
from . import wizard
from . import report
60 changes: 60 additions & 0 deletions account_invoice_export_xls/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
#
# Copyright (c)
# 2015 - Factor Libre (http://factorlibre.com)
# Hugo Santos <hugo.santos@factorlibre.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
#
##############################################################################

{
"name": "Invoice export XLS",
"version": "1.0",
"author": "Spanish Localization Team",
'website': 'http://odoo-spain.org',
"category": "Accounting / Reports",
"description": """
Excel export for account invoices
=================================================
Allow export invoices to xls
**WARNING:** This module requires module *report_xls*, available on:
https://github.com/OCA/reporting-engine/
Contributors
------------
* Hugo Santos <hugo.santos@factorlibre.com>
""",
'depends': [
'account',
'report_xls',
],
'contributors': [
'Hugo Santos <hugo.santos@factorlibre.com>'
],
'external_dependencies': {
'python': ['xlwt'],
},
'data': [
'report/export_invoice_xls.xml',
'wizard/xls_invoice_report_wizard.xml',
],
'installable': True,
}
208 changes: 208 additions & 0 deletions account_invoice_export_xls/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * account_invoice_export_xls
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-02-23 09:32+0000\n"
"PO-Revision-Date: 2015-02-23 09:32+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: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:170
#, python-format
msgid "Amount Total"
msgstr "Total"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:163
#, python-format
msgid "Amount Untaxed"
msgstr "Base Moneda Compañía"

#. module: account_invoice_export_xls
#: view:xls.invoice.report.wizard:0
msgid "Cancel"
msgstr "Cancelar"

#. module: account_invoice_export_xls
#: field:xls.invoice.report.wizard,company_id:0
msgid "Company"
msgstr "Compañía"

#. module: account_invoice_export_xls
#: selection:xls.invoice.report.wizard,invoice_type:0
msgid "Customer Invoice"
msgstr "Facturas de cliente"

#. module: account_invoice_export_xls
#: selection:xls.invoice.report.wizard,invoice_type:0
msgid "Customer Refund Invoice"
msgstr "Facturas rectificativas de cliente"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:140
#, python-format
msgid "Date"
msgstr "Fecha"

#. module: account_invoice_export_xls
#: view:xls.invoice.report.wizard:0
msgid "Export"
msgstr "Exportar"

#. module: account_invoice_export_xls
#: model:ir.actions.report.xml,name:account_invoice_export_xls.report_export_invoice_xls
msgid "Export Selected Lines"
msgstr "Exportar Líneas seleccionadas"

#. module: account_invoice_export_xls
#: code:_description:0
#: model:ir.model,name:account_invoice_export_xls.model_account_invoice
#, python-format
msgid "Invoice"
msgstr "Factura"

#. module: account_invoice_export_xls
#: model:ir.actions.act_window,name:account_invoice_export_xls.xls_invoice_report_wizard_action
#: model:ir.ui.menu,name:account_invoice_export_xls.xls_invoice_report_wizard_menu
#: view:xls.invoice.report.wizard:0
msgid "Invoice Report XLS"
msgstr "Exportar Facturas XLS"

#. module: account_invoice_export_xls
#: field:xls.invoice.report.wizard,invoice_type:0
msgid "Invoice Type"
msgstr "Tipo de factura"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:148
#, python-format
msgid "Number"
msgstr "Número"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:153
#, python-format
msgid "Partner Name"
msgstr "Empresa"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:158
#, python-format
msgid "Partner Vat"
msgstr "CIF/NIF Empresa"

#. module: account_invoice_export_xls
#: field:xls.invoice.report.wizard,period_ids:0
msgid "Periods"
msgstr "Periodos"

#. module: account_invoice_export_xls
#: field:xls.invoice.report.wizard,period_id:0
msgid "Period"
msgstr "Periodo"

#. module: account_invoice_export_xls
#: selection:xls.invoice.report.wizard,invoice_type:0
msgid "Supplier Invoice"
msgstr "Factura de proveedor"

#. module: account_invoice_export_xls
#: selection:xls.invoice.report.wizard,invoice_type:0
msgid "Supplier Refund Invoice"
msgstr "Factura rectificativa de proveedor"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:190
#, python-format
msgid "Tax Line Amount"
msgstr "Línea de impuestos/Importe"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:177
#, python-format
msgid "Tax Line Base"
msgstr "Línea de impuestos/Base"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:197
#, python-format
msgid "Tax Line Base Amount"
msgstr "Línea de impuestos/Importe código base"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:205
#, python-format
msgid "Tax Line Base Tax Code"
msgstr "Línea de impuestos/Código Base"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:211
#, python-format
msgid "Tax Line Base Tax Name"
msgstr "Línea de impuestos/Nombre de código base"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:184
#, python-format
msgid "Tax Line Description"
msgstr "Línea de impuestos/Descripción"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:217
#, python-format
msgid "Tax Line Tax Amount"
msgstr "Línea de impuestos/Importe código impuesto"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:225
#, python-format
msgid "Tax Line Tax Code"
msgstr "Línea de impuestos/Código de impuesto"

#. module: account_invoice_export_xls
#: code:addons/account_invoice_export_xls/report/export_invoice_xls.py:231
#, python-format
msgid "Tax Line Tax Name"
msgstr "Línea de impuestos/Nombre de código de impuesto"

#. module: account_invoice_export_xls
#: view:xls.invoice.report.wizard:0
msgid "or"
msgstr "o"

#. module: account_invoice_export_xls
#: code:_description:0
#: model:ir.model,name:account_invoice_export_xls.model_xls_invoice_report_wizard
#, python-format
msgid "xls.invoice.report.wizard"
msgstr "xls.invoice.report.wizard"

#. module: account_invoice_export_xls
#: report:account.invoice.export.xls:0
msgid "out_invoice"
msgstr "Facturas de cliente"

#. module: account_invoice_export_xls
#: report:account.invoice.export.xls:0
msgid "out_refund"
msgstr "Facturas rectificativas de cliente"

#. module: account_invoice_export_xls
#: report:account.invoice.export.xls:0
msgid "in_invoice"
msgstr "Facturas de proveedor"

#. module: account_invoice_export_xls
#: report:account.invoice.export.xls:0
msgid "in_refund"
msgstr "Facturas rectificativas de proveedor"

1 change: 1 addition & 0 deletions account_invoice_export_xls/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_invoice
21 changes: 21 additions & 0 deletions account_invoice_export_xls/models/account_invoice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# License, author and contributors information in:
# __openerp__.py file at the root folder of this module.
from openerp.osv import orm


class AccountInvoice(orm.Model):
_inherit = 'account.invoice'

def _report_xls_fields(self, cr, uid, context=None):
return [
'date_invoice', 'invoice_number', 'partner_name', 'partner_vat',
'amount_untaxed', 'amount_total', 'tax_line_base',
'tax_line_description', 'tax_line_amount', 'tax_line_base_amount',
'tax_line_base_tax_code', 'tax_line_base_tax_name',
'tax_line_tax_amount', 'tax_line_tax_tax_code',
'tax_line_tax_tax_name'
]

def _report_xls_template(self, cr, uid, context=None):
return {}
1 change: 1 addition & 0 deletions account_invoice_export_xls/report/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import export_invoice_xls

0 comments on commit 34d6de1

Please sign in to comment.