From fb80ea51ed03147ec59c33ebd9fd187c6c03b597 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Thu, 1 Oct 2020 14:55:00 +0200 Subject: [PATCH] [DEL] Obsolete module account_financial_report --- account_financial_report/__init__.py | 30 - account_financial_report/__manifest__.py | 66 - account_financial_report/i18n/es.po | 695 --------- account_financial_report/i18n/es_MX.po | 687 --------- account_financial_report/i18n/es_VE.po | 687 --------- account_financial_report/model/__init__.py | 27 - .../model/account_financial_report.py | 216 --- account_financial_report/model/res_company.py | 40 - account_financial_report/report/__init__.py | 28 - .../report/balance_full.rml | 131 -- .../report/balance_full_13_cols.rml | 235 ---- .../report/balance_full_2_cols.rml | 131 -- .../report/balance_full_4_cols.rml | 149 -- .../balance_full_4_cols_analytic_ledger.rml | 294 ---- .../balance_full_4_cols_journal_ledger.rml | 397 ------ .../balance_full_4_cols_partner_balance.rml | 273 ---- .../report/balance_full_5_cols.rml | 158 --- .../report/balance_full_qtr_cols.rml | 158 --- account_financial_report/report/parser.py | 1238 ----------------- .../security/ir.model.access.csv | 10 - .../security/security.xml | 20 - .../view/account_financial_report_view.xml | 118 -- .../view/company_view.xml | 47 - account_financial_report/view/report.xml | 106 -- account_financial_report/view/wizard.xml | 125 -- account_financial_report/wizard/__init__.py | 28 - account_financial_report/wizard/wizard.py | 373 ----- 27 files changed, 6467 deletions(-) delete mode 100644 account_financial_report/__init__.py delete mode 100644 account_financial_report/__manifest__.py delete mode 100644 account_financial_report/i18n/es.po delete mode 100644 account_financial_report/i18n/es_MX.po delete mode 100644 account_financial_report/i18n/es_VE.po delete mode 100755 account_financial_report/model/__init__.py delete mode 100644 account_financial_report/model/account_financial_report.py delete mode 100755 account_financial_report/model/res_company.py delete mode 100644 account_financial_report/report/__init__.py delete mode 100644 account_financial_report/report/balance_full.rml delete mode 100644 account_financial_report/report/balance_full_13_cols.rml delete mode 100644 account_financial_report/report/balance_full_2_cols.rml delete mode 100644 account_financial_report/report/balance_full_4_cols.rml delete mode 100644 account_financial_report/report/balance_full_4_cols_analytic_ledger.rml delete mode 100644 account_financial_report/report/balance_full_4_cols_journal_ledger.rml delete mode 100644 account_financial_report/report/balance_full_4_cols_partner_balance.rml delete mode 100644 account_financial_report/report/balance_full_5_cols.rml delete mode 100644 account_financial_report/report/balance_full_qtr_cols.rml delete mode 100644 account_financial_report/report/parser.py delete mode 100644 account_financial_report/security/ir.model.access.csv delete mode 100644 account_financial_report/security/security.xml delete mode 100644 account_financial_report/view/account_financial_report_view.xml delete mode 100644 account_financial_report/view/company_view.xml delete mode 100644 account_financial_report/view/report.xml delete mode 100644 account_financial_report/view/wizard.xml delete mode 100644 account_financial_report/wizard/__init__.py delete mode 100644 account_financial_report/wizard/wizard.py diff --git a/account_financial_report/__init__.py b/account_financial_report/__init__.py deleted file mode 100644 index 75a8a42b..00000000 --- a/account_financial_report/__init__.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- encoding: utf-8 -*- -########################################################################### -# Module Writen to OpenERP, Open Source Management Solution -# Copyright (C) OpenERP Venezuela (). -# All Rights Reserved -# Credits###################################################### -# Coded by: Humberto Arocha humberto@openerp.com.ve -# Angelica Barrios angelicaisabelb@gmail.com -# Jordi Esteve -# Planified by: Humberto Arocha -# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com -# Audited by: Humberto Arocha humberto@openerp.com.ve -############################################################################# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -############################################################################## - -from . import model -from . import report -from . import wizard diff --git a/account_financial_report/__manifest__.py b/account_financial_report/__manifest__.py deleted file mode 100644 index b29df73e..00000000 --- a/account_financial_report/__manifest__.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- encoding: utf-8 -*- -########################################################################### -# Copyright (C) OpenERP Venezuela (). -# All Rights Reserved -# Credits###################################################### -# Coded by: Humberto Arocha humberto@openerp.com.ve -# Angelica Barrios angelicaisabelb@gmail.com -# Jordi Esteve -# Planified by: Humberto Arocha -# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com -# Audited by: Humberto Arocha humberto@openerp.com.ve -############################################################################# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -############################################################################## -{ - "name": "Common financial reports", - "version": "2.0", - "author": "Vauxoo,Odoo Community Association (OCA)", - "website": "http://www.vauxoo.com", - "license": "GPL-3 or any later version", - "depends": ["base", - "account" - ], - "category": "Accounting", - "description": """ -Multipurpose Accounting report generator. -========================================= - -From the wizard you will be asked to provide information needed to create your -report. - -Not only you can set the option within the wizard you can create your own -Customized Account Financial Reports, in here, you will be able to create -Templates for generating Two types of Reports: Balance Sheets and Income -Statements, incluiding Analytic Ledgers. Besides, you can select within a set -of choices to get better detailed report, be it that you ask it by one or -several periods, by months (12 Months + YTD), or by quarters (4QRT's + YTD). -Even you can get your reports in currencies other than the one set on your -company. - -In the [ Account's Sign on Reports ] Section in the Company will be able to -set the sign conventions for the Accounts, so that you will be able to see in -positives Values in your reports for those accounts with Accreditable nature -where appropriate""", - "data": [ - "security/security.xml", - "security/ir.model.access.csv", - "view/report.xml", - "view/wizard.xml", - "view/company_view.xml", - "view/account_financial_report_view.xml", - ], - "active": False, - 'installable': False -} diff --git a/account_financial_report/i18n/es.po b/account_financial_report/i18n/es.po deleted file mode 100644 index c41b7c92..00000000 --- a/account_financial_report/i18n/es.po +++ /dev/null @@ -1,695 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * account_financial_report -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-06-17 21:47+0000\n" -"PO-Revision-Date: 2013-06-17 21:47+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_financial_report -#: view:res.company:0 -msgid "Reverse sign on Reports for these accounts and children accounts that are within Debitable Accounts" -msgstr "Invierte el signo en los reportes para estas cuentas y las cuentas hijas que están dentro de las Cuentas Debitables" - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "No Filter" -msgstr "Sin Filtro" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "With Balance / Movements" -msgstr "Con Saldo / Movimientos" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.4_col_report -msgid "Balance 4 Columnas" -msgstr "Balance 4 Columnas" - -#. module: account_financial_report -#: view:res.company:0 -msgid "An accreditable account is one which grows in the credit and diminishes in the debit" -msgstr "Una cuenta acreditable es una que crece por el crédito y disminuye por el débito." - -#. module: account_financial_report -#: report:afr.1cols:0 -#: report:afr.4cols:0 -#: report:afr.analytic.ledger:0 -msgid "BALANCE" -msgstr "BALANCE" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:85 -#: selection:afr,inf_type:0 -#: selection:wizard.report,inf_type:0 -#, python-format -msgid "Balance Sheet" -msgstr "Balance General" - -#. module: account_financial_report -#: field:afr,company_id:0 -#: field:wizard.report,company_id:0 -msgid "Company" -msgstr "Compañía" - -#. module: account_financial_report -#: code:addons/account_financial_report/wizard/wizard.py:150 -#, python-format -msgid "Write a Description for your Summary Total" -msgstr "Escriba una Descripción para el total del Sumario" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.5_col_report -msgid "Balance 5 Columnas" -msgstr "Balance 5 Columnas" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.qtr_col_report -msgid "Balance QTRs Columnas" -msgstr "Balance QTRs Columnas" - -#. module: account_financial_report -#: report:afr.5cols:0 -msgid "INIT. BAL." -msgstr "BAL. INIC." - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "By Date and Period" -msgstr "Por fecha y período" - -#. module: account_financial_report -#: code:addons/account_financial_report/model/account_financial_report.py:77 -#, python-format -msgid "Copy of %s" -msgstr "Copia de %s" - -#. module: account_financial_report -#: field:afr,account_ids:0 -#: field:wizard.report,account_list:0 -msgid "Root accounts" -msgstr "Cuentas raíces" - -#. module: account_financial_report -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -msgid "PERIOD" -msgstr "PERIODO" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "With Balance" -msgstr "Con Balance" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "12" -msgstr "12" - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "By Date" -msgstr "Por Fecha" - -#. module: account_financial_report -#: code:addons/account_financial_report/wizard/wizard.py:242 -#, python-format -msgid "La interseccion entre el periodo y fecha es vacio" -msgstr "La interseccion entre el periodo y fecha es vacio" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Company Info" -msgstr "Información de la Compañía" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:344 -#: code:addons/account_financial_report/wizard/wizard.py:189 -#: code:addons/account_financial_report/wizard/wizard.py:193 -#, python-format -msgid "UserError" -msgstr "UserError" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "JOURNAL ENTRY" -msgstr "ASIENTO DIARIO" - -#. module: account_financial_report -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -msgid "CREDIT" -msgstr "CREDITO" - -#. module: account_financial_report -#: view:wizard.report:0 -msgid "_Cancel" -msgstr "_Cancelar" - -#. module: account_financial_report -#: view:res.company:0 -msgid "Account's Sign on Reports" -msgstr "Signo de las Cuentas en Reportes" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.2_col_report -msgid "Balance 2 Columnas" -msgstr "Balance 2 Columnas" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "Debit | Credit" -msgstr "Débito | Crédito" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Please check the [ Account's Sign on Reports ] Section in the Company" -msgstr "Por Favor, Verifique la Sección [ Signo de las Cuentas en Reportes ] en la Compañía" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.1cols:0 -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.analytic.ledger:0 -#: report:afr.qtrcols:0 -msgid "CODE" -msgstr "CÓDIGO" - -#. module: account_financial_report -#: view:res.company:0 -msgid "A debitable account is one which grows in the debit and diminishes in the credit" -msgstr "Una cuenta debitable es una que crece por el débito y disminuye por el crédito." - -#. module: account_financial_report -#: report:afr.5cols:0 -msgid "(Expressed in" -msgstr "(Expresado en" - -#. module: account_financial_report -#: report:afr.4cols:0 -#: report:afr.analytic.ledger:0 -msgid "INITIAL" -msgstr "INICIAL" - -#. module: account_financial_report -#: field:wizard.report,afr_id:0 -msgid "Custom Report" -msgstr "Reporte Personalizado" - -#. module: account_financial_report -#: field:afr,date_from:0 -#: field:wizard.report,date_from:0 -msgid "Start date" -msgstr "Fecha Inicial" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Accounts to Include" -msgstr "Cuentas a incluir" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:100 -#: code:addons/account_financial_report/report/parser.py:109 -#, python-format -msgid " to " -msgstr " hasta " - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "02" -msgstr "02" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "03" -msgstr "03" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "01" -msgstr "01" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "06" -msgstr "06" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "07" -msgstr "07" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "04" -msgstr "04" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "05" -msgstr "05" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "08" -msgstr "08" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "09" -msgstr "09" - -#. module: account_financial_report -#: view:afr:0 -#: model:ir.ui.menu,name:account_financial_report.account_financial_report_menu -msgid "Account Financial Report (Templates)" -msgstr "Reportes Financieros (Plantillas)" - -#. module: account_financial_report -#: field:afr,fiscalyear_id:0 -#: field:wizard.report,fiscalyear:0 -msgid "Fiscal year" -msgstr "Ejercicio Fiscal" - -#. module: account_financial_report -#: model:ir.actions.act_window,help:account_financial_report.account_financial_report_action -msgid "Create your own Customized Account Financial Reports, in here, you will be able to create Templates for generating Two types of Reports: Balance Sheets and Income Statements, incluiding Analytic Ledgers. Besides, you can select within a set of choices to get better detailed report, be it that you ask it by one or several periods, by months (12 Months + YTD), or by quarters (4QRT's + YTD). Even you can get your reports in currencies other than the one set on your company." -msgstr "Cree sus propios Reportes Financieros Personalizados, aquí, Vd. podrá se capaz de Diseñar las Plantillas para la generación de Dos Tipos de Reportes: Balances Generales y Estados de Resultados, incluyendo Mayores Analíticos. Además, podrá seleccionar entre un conjunto de opciones para obtener un mejor reporte detallado, sea que lo pida para un período determinado, por meses (12 MESES + YTD) o por trimestres (4to's + YTD). Incluso puede obtener reportes en otras monedas distintas a la establecida en su compañia." - -#. module: account_financial_report -#: field:res.company,credit_account_ids:0 -msgid "Creditable Accounts" -msgstr "Cuentas Acreditables" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:344 -#, python-format -msgid "The Selected Fiscal Year Does not have Regular Periods" -msgstr "El Ejercicio Fiscal Seleccionado no tiene Períodos Regulares" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.5cols:0 -#: report:afr.qtrcols:0 -msgid "YTD" -msgstr "YTD" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Periods to Include" -msgstr "Períodos a incluir" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "With movements" -msgstr "Con Movimientos" - -#. module: account_financial_report -#: field:afr,currency_id:0 -#: field:wizard.report,currency_id:0 -msgid "Currency" -msgstr "Moneda" - -#. module: account_financial_report -#: field:afr,display_account:0 -#: field:wizard.report,display_account:0 -msgid "Display accounts" -msgstr "Mostrar cuentas" - -#. module: account_financial_report -#: field:afr,display_account_level:0 -#: field:wizard.report,display_account_level:0 -msgid "Up to level" -msgstr "Hasta nivel" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "PARTNER" -msgstr "PARTNER" - -#. module: account_financial_report -#: help:afr,currency_id:0 -#: help:wizard.report,currency_id:0 -msgid "Currency at which this report will be expressed. If not selected will be used the one set in the company" -msgstr "Moneda con la cual este reporte será expresado. Si no se selecciona se usará la que está establecida en la compañía" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.1cols:0 -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -#: report:afr.qtrcols:0 -msgid "ACCOUNT" -msgstr "CUENTA" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "Pag.:" -msgstr "Pág.:" - -#. module: account_financial_report -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -msgid "DEBIT" -msgstr "DÉBITO" - -#. module: account_financial_report -#: field:afr,columns:0 -#: field:wizard.report,columns:0 -msgid "Columns" -msgstr "Columnas" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "REFERENCE" -msgstr "REFERENCIA" - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "By Period" -msgstr "Por Período" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "4 QTR's | YTD" -msgstr "4 TRM's | YTD" - -#. module: account_financial_report -#: model:ir.actions.act_window,name:account_financial_report.action_wizard_report -#: model:ir.ui.menu,name:account_financial_report.menu_wizard_report -msgid "Account Financial Report (Multireports)" -msgstr "Reportes Financieros (Multireportes)" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Accounts Info" -msgstr "Información de Cuentas" - -#. module: account_financial_report -#: help:afr,display_account_level:0 -#: help:wizard.report,display_account_level:0 -msgid "Display accounts up to this level (0 to show all)" -msgstr "Se mostrarán las cuentas hasta este nivel (Seleccionar 0 las mostrará todas)" - -#. module: account_financial_report -#: model:ir.model,name:account_financial_report.model_res_company -msgid "Companies" -msgstr "Compañías" - -#. module: account_financial_report -#: help:afr,fiscalyear_id:0 -#: help:wizard.report,fiscalyear:0 -msgid "Fiscal Year for this report" -msgstr "Ejercicio Fiscal para este reporte" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:87 -#: selection:afr,inf_type:0 -#: selection:wizard.report,inf_type:0 -#, python-format -msgid "Income Statement" -msgstr "Estado de Resultados" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.1cols:0 -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.qtrcols:0 -msgid "/ Pág.:" -msgstr "/ Pág.:" - -#. module: account_financial_report -#: model:ir.actions.act_window,name:account_financial_report.account_financial_report_action -#: model:res.groups,name:account_financial_report.group_afreport -#: view:wizard.report:0 -msgid "Account Financial Report" -msgstr "Reportes Financieros" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "11" -msgstr "11" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "10" -msgstr "10" - -#. module: account_financial_report -#: report:afr.5cols:0 -msgid "Code" -msgstr "Código" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.1_col_report -msgid "Balance 1 Columna" -msgstr "Balance 1 Columna" - -#. module: account_financial_report -#: view:wizard.report:0 -msgid "Print" -msgstr "Imprimir" - -#. module: account_financial_report -#: field:afr,filter:0 -#: field:wizard.report,filter:0 -msgid "Date/Period Filter" -msgstr "Filtro Fecha/Período" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "FiscalYear Info" -msgstr "Información del Ejercicio Fiscal" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "Initial | Debit | Credit | YTD" -msgstr "Inicial | Débito | Crédito | YTD" - -#. module: account_financial_report -#: field:afr,period_ids:0 -#: field:wizard.report,periods:0 -msgid "Periods" -msgstr "Períodos" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q1" -msgstr "Q1" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q3" -msgstr "Q3" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q2" -msgstr "Q2" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q4" -msgstr "Q4" - -#. module: account_financial_report -#: help:afr,analytic_ledger:0 -#: help:wizard.report,analytic_ledger:0 -msgid "Allows to Generate an Analytic Ledger for accounts with moves. Available when Balance Sheet and 'Initial | Debit | Credit | YTD' are selected" -msgstr "Permite generar un Mayor Analítico para las cuentas con movimientos. Disponible cuando se selecciona 'Balance General' e 'Inicial | Débito | Crédito | YTD'" - -#. module: account_financial_report -#: help:wizard.report,afr_id:0 -msgid "If you have already set a Custom Report, Select it Here." -msgstr "Si ya ha configurado un Reporte Personalizado, Selecciónelo Aquí." - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "Initial | Debit | Credit | Period | YTD" -msgstr "Inicial | Débito | Crédito | Período | YTD" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "End. Balance" -msgstr "Bal. Final" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "DATE" -msgstr "FECHA" - -#. module: account_financial_report -#: view:res.company:0 -msgid "Keep sign on Reports for these accounts and children accounts that are within Accreditable Accounts" -msgstr "Mantiene el signo en los reportes para estas cuentas y las cuentas hijas que están dentro de las Cuentas Acreditables" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:100 -#: code:addons/account_financial_report/report/parser.py:109 -#, python-format -msgid "From " -msgstr "Desde " - -#. module: account_financial_report -#: field:afr,inf_type:0 -#: field:wizard.report,inf_type:0 -msgid "Type" -msgstr "Tipo" - -#. module: account_financial_report -#: field:afr,date_to:0 -#: field:wizard.report,date_to:0 -msgid "End date" -msgstr "Fecha final" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Account's Sign Conventions" -msgstr "Convención de Signos de las Cuentas" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.13_col_report -msgid "Balance 13 Columnas" -msgstr "Balance 13 Columnas" - -#. module: account_financial_report -#: view:res.company:0 -msgid "Accreditable Accounts" -msgstr "Cuentas Acreditables" - -#. module: account_financial_report -#: model:ir.model,name:account_financial_report.model_afr -msgid "afr" -msgstr "afr" - -#. module: account_financial_report -#: field:afr,name:0 -msgid "Name" -msgstr "Nombre" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:83 -#: field:afr,analytic_ledger:0 -#: model:ir.actions.report.xml,name:account_financial_report.analytic_ledger_report -#: field:wizard.report,analytic_ledger:0 -#, python-format -msgid "Analytic Ledger" -msgstr "Mayor Analítico" - -#. module: account_financial_report -#: view:res.company:0 -#: field:res.company,debit_account_ids:0 -msgid "Debitable Accounts" -msgstr "Cuentas Debitables" - -#. module: account_financial_report -#: help:afr,period_ids:0 -#: help:wizard.report,periods:0 -msgid "All periods in the fiscal year if empty" -msgstr "Todos los períodos en el ejercicio fiscal si se deja vacío" - -#. module: account_financial_report -#: code:addons/account_financial_report/wizard/wizard.py:179 -#: code:addons/account_financial_report/wizard/wizard.py:242 -#, python-format -msgid "Error !" -msgstr "Error !" - -#. module: account_financial_report -#: model:ir.model,name:account_financial_report.model_wizard_report -msgid "wizard.report" -msgstr "wizard.report" - -#. module: account_financial_report -#: field:afr,lab_str:0 -#: field:wizard.report,lab_str:0 -msgid "Description" -msgstr "Descripción" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Report Info" -msgstr "Información del Reporte" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "All Accounts" -msgstr "Todas las Cuentas" - -#. module: account_financial_report -#: field:afr,tot_check:0 -#: field:wizard.report,tot_check:0 -msgid "Summarize?" -msgstr "Totalizar?" - -#. module: account_financial_report -#: help:afr,tot_check:0 -#: help:wizard.report,tot_check:0 -msgid "Checking will add a new line at the end of the Report which will Summarize Columns in Report" -msgstr "Seleccionarlo agregará una nueva línea al final del Reporte el cual Totalizará las Columnas en el Reporte" - -#. module: account_financial_report -#: help:afr,lab_str:0 -#: help:wizard.report,lab_str:0 -msgid "Description for the Summary" -msgstr "Descripción para el Total" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "12 Months | YTD" -msgstr "12 Meses | YTD" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Total" -msgstr "Total" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:82 -#, python-format -msgid "\n" -"VAT OF COMPANY NOT AVAILABLE" -msgstr "\n" -"VAT DE LA COMPAÑIA NO DISPONIBLE" - diff --git a/account_financial_report/i18n/es_MX.po b/account_financial_report/i18n/es_MX.po deleted file mode 100644 index 81212bc3..00000000 --- a/account_financial_report/i18n/es_MX.po +++ /dev/null @@ -1,687 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * account_financial_report -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-06-17 21:47+0000\n" -"PO-Revision-Date: 2013-06-17 21:47+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_financial_report -#: view:res.company:0 -msgid "Reverse sign on Reports for these accounts and children accounts that are within Debitable Accounts" -msgstr "Invierte el signo en los reportes para estas cuentas y las cuentas hijas que están dentro de las Cuentas Debitables" - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "No Filter" -msgstr "Sin Filtro" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "With Balance / Movements" -msgstr "Con Saldo / Movimientos" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.4_col_report -msgid "Balance 4 Columnas" -msgstr "Balance 4 Columnas" - -#. module: account_financial_report -#: view:res.company:0 -msgid "An accreditable account is one which grows in the credit and diminishes in the debit" -msgstr "Una cuenta acreditable es una que crece por el crédito y disminuye por el débito." - -#. module: account_financial_report -#: report:afr.1cols:0 -#: report:afr.4cols:0 -#: report:afr.analytic.ledger:0 -msgid "BALANCE" -msgstr "BALANCE" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:85 -#: selection:afr,inf_type:0 -#: selection:wizard.report,inf_type:0 -#, python-format -msgid "Balance Sheet" -msgstr "Balance General" - -#. module: account_financial_report -#: field:afr,company_id:0 -#: field:wizard.report,company_id:0 -msgid "Company" -msgstr "Compañía" - -#. module: account_financial_report -#: code:addons/account_financial_report/wizard/wizard.py:150 -#, python-format -msgid "Write a Description for your Summary Total" -msgstr "Escriba una Descripción para el total del Sumario" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.5_col_report -msgid "Balance 5 Columnas" -msgstr "Balance 5 Columnas" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.qtr_col_report -msgid "Balance QTRs Columnas" -msgstr "Balance QTRs Columnas" - -#. module: account_financial_report -#: report:afr.5cols:0 -msgid "INIT. BAL." -msgstr "BAL. INIC." - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "By Date and Period" -msgstr "Por fecha y período" - -#. module: account_financial_report -#: code:addons/account_financial_report/model/account_financial_report.py:77 -#, python-format -msgid "Copy of %s" -msgstr "Copia de %s" - -#. module: account_financial_report -#: field:afr,account_ids:0 -#: field:wizard.report,account_list:0 -msgid "Root accounts" -msgstr "Cuentas raíces" - -#. module: account_financial_report -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -msgid "PERIOD" -msgstr "PERIODO" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "With Balance" -msgstr "Con Balance" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "12" -msgstr "12" - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "By Date" -msgstr "Por Fecha" - -#. module: account_financial_report -#: code:addons/account_financial_report/wizard/wizard.py:242 -#, python-format -msgid "La interseccion entre el periodo y fecha es vacio" -msgstr "La interseccion entre el periodo y fecha es vacio" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Company Info" -msgstr "Información de la Compañía" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:344 -#: code:addons/account_financial_report/wizard/wizard.py:189 -#: code:addons/account_financial_report/wizard/wizard.py:193 -#, python-format -msgid "UserError" -msgstr "UserError" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "JOURNAL ENTRY" -msgstr "ASIENTO DIARIO" - -#. module: account_financial_report -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -msgid "CREDIT" -msgstr "CREDITO" - -#. module: account_financial_report -#: view:wizard.report:0 -msgid "_Cancel" -msgstr "_Cancelar" - -#. module: account_financial_report -#: view:res.company:0 -msgid "Account's Sign on Reports" -msgstr "Signo de las Cuentas en Reportes" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.2_col_report -msgid "Balance 2 Columnas" -msgstr "Balance 2 Columnas" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "Debit | Credit" -msgstr "Débito | Crédito" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Please check the [ Account's Sign on Reports ] Section in the Company" -msgstr "Por Favor, Verifique la Sección [ Signo de las Cuentas en Reportes ] en la Compañía" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.1cols:0 -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.analytic.ledger:0 -#: report:afr.qtrcols:0 -msgid "CODE" -msgstr "CÓDIGO" - -#. module: account_financial_report -#: view:res.company:0 -msgid "A debitable account is one which grows in the debit and diminishes in the credit" -msgstr "Una cuenta debitable es una que crece por el débito y disminuye por el crédito." - -#. module: account_financial_report -#: report:afr.5cols:0 -msgid "(Expressed in" -msgstr "(Expresado en" - -#. module: account_financial_report -#: report:afr.4cols:0 -#: report:afr.analytic.ledger:0 -msgid "INITIAL" -msgstr "INICIAL" - -#. module: account_financial_report -#: field:wizard.report,afr_id:0 -msgid "Custom Report" -msgstr "Reporte Personalizado" - -#. module: account_financial_report -#: field:afr,date_from:0 -#: field:wizard.report,date_from:0 -msgid "Start date" -msgstr "Fecha Inicial" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Accounts to Include" -msgstr "Cuentas a incluir" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:100 -#: code:addons/account_financial_report/report/parser.py:109 -#, python-format -msgid " to " -msgstr " hasta " - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "02" -msgstr "02" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "03" -msgstr "03" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "01" -msgstr "01" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "06" -msgstr "06" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "07" -msgstr "07" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "04" -msgstr "04" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "05" -msgstr "05" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "08" -msgstr "08" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "09" -msgstr "09" - -#. module: account_financial_report -#: view:afr:0 -#: model:ir.ui.menu,name:account_financial_report.account_financial_report_menu -msgid "Account Financial Report (Templates)" -msgstr "Reportes Financieros (Plantillas)" - -#. module: account_financial_report -#: field:afr,fiscalyear_id:0 -#: field:wizard.report,fiscalyear:0 -msgid "Fiscal year" -msgstr "Ejercicio Fiscal" - -#. module: account_financial_report -#: model:ir.actions.act_window,help:account_financial_report.account_financial_report_action -msgid "Create your own Customized Account Financial Reports, in here, you will be able to create Templates for generating Two types of Reports: Balance Sheets and Income Statements, incluiding Analytic Ledgers. Besides, you can select within a set of choices to get better detailed report, be it that you ask it by one or several periods, by months (12 Months + YTD), or by quarters (4QRT's + YTD). Even you can get your reports in currencies other than the one set on your company." -msgstr "Cree sus propios Reportes Financieros Personalizados, aquí, Vd. podrá se capaz de Diseñar las Plantillas para la generación de Dos Tipos de Reportes: Balances Generales y Estados de Resultados, incluyendo Mayores Analíticos. Además, podrá seleccionar entre un conjunto de opciones para obtener un mejor reporte detallado, sea que lo pida para un período determinado, por meses (12 MESES + YTD) o por trimestres (4to's + YTD). Incluso puede obtener reportes en otras monedas distintas a la establecida en su compañia." - -#. module: account_financial_report -#: field:res.company,credit_account_ids:0 -msgid "Creditable Accounts" -msgstr "Cuentas Acreditables" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:344 -#, python-format -msgid "The Selected Fiscal Year Does not have Regular Periods" -msgstr "El Ejercicio Fiscal Seleccionado no tiene Períodos Regulares" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.5cols:0 -#: report:afr.qtrcols:0 -msgid "YTD" -msgstr "YTD" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Periods to Include" -msgstr "Períodos a incluir" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "With movements" -msgstr "Con Movimientos" - -#. module: account_financial_report -#: field:afr,currency_id:0 -#: field:wizard.report,currency_id:0 -msgid "Currency" -msgstr "Moneda" - -#. module: account_financial_report -#: field:afr,display_account:0 -#: field:wizard.report,display_account:0 -msgid "Display accounts" -msgstr "Mostrar cuentas" - -#. module: account_financial_report -#: field:afr,display_account_level:0 -#: field:wizard.report,display_account_level:0 -msgid "Up to level" -msgstr "Hasta nivel" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "PARTNER" -msgstr "PARTNER" - -#. module: account_financial_report -#: help:afr,currency_id:0 -#: help:wizard.report,currency_id:0 -msgid "Currency at which this report will be expressed. If not selected will be used the one set in the company" -msgstr "Moneda con la cual este reporte será expresado. Si no se selecciona se usará la que está establecida en la compañía" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.1cols:0 -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -#: report:afr.qtrcols:0 -msgid "ACCOUNT" -msgstr "CUENTA" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "Pag.:" -msgstr "Pág.:" - -#. module: account_financial_report -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -msgid "DEBIT" -msgstr "DÉBITO" - -#. module: account_financial_report -#: field:afr,columns:0 -#: field:wizard.report,columns:0 -msgid "Columns" -msgstr "Columnas" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "REFERENCE" -msgstr "REFERENCIA" - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "By Period" -msgstr "Por Período" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "4 QTR's | YTD" -msgstr "4 TRM's | YTD" - -#. module: account_financial_report -#: model:ir.actions.act_window,name:account_financial_report.action_wizard_report -#: model:ir.ui.menu,name:account_financial_report.menu_wizard_report -msgid "Account Financial Report (Multireports)" -msgstr "Reportes Financieros (Multireportes)" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Accounts Info" -msgstr "Información de Cuentas" - -#. module: account_financial_report -#: help:afr,display_account_level:0 -#: help:wizard.report,display_account_level:0 -msgid "Display accounts up to this level (0 to show all)" -msgstr "Se mostrarán las cuentas hasta este nivel (Seleccionar 0 las mostrará todas)" - -#. module: account_financial_report -#: model:ir.model,name:account_financial_report.model_res_company -msgid "Companies" -msgstr "Compañías" - -#. module: account_financial_report -#: help:afr,fiscalyear_id:0 -#: help:wizard.report,fiscalyear:0 -msgid "Fiscal Year for this report" -msgstr "Ejercicio Fiscal para este reporte" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:87 -#: selection:afr,inf_type:0 -#: selection:wizard.report,inf_type:0 -#, python-format -msgid "Income Statement" -msgstr "Estado de Resultados" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.1cols:0 -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.qtrcols:0 -msgid "/ Pág.:" -msgstr "/ Pág.:" - -#. module: account_financial_report -#: model:ir.actions.act_window,name:account_financial_report.account_financial_report_action -#: model:res.groups,name:account_financial_report.group_afreport -#: view:wizard.report:0 -msgid "Account Financial Report" -msgstr "Reportes Financieros" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "11" -msgstr "11" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "10" -msgstr "10" - -#. module: account_financial_report -#: report:afr.5cols:0 -msgid "Code" -msgstr "Código" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.1_col_report -msgid "Balance 1 Columna" -msgstr "Balance 1 Columna" - -#. module: account_financial_report -#: view:wizard.report:0 -msgid "Print" -msgstr "Imprimir" - -#. module: account_financial_report -#: field:afr,filter:0 -#: field:wizard.report,filter:0 -msgid "Date/Period Filter" -msgstr "Filtro Fecha/Período" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "FiscalYear Info" -msgstr "Información del Ejercicio Fiscal" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "Initial | Debit | Credit | YTD" -msgstr "Inicial | Débito | Crédito | YTD" - -#. module: account_financial_report -#: field:afr,period_ids:0 -#: field:wizard.report,periods:0 -msgid "Periods" -msgstr "Períodos" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q1" -msgstr "Q1" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q3" -msgstr "Q3" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q2" -msgstr "Q2" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q4" -msgstr "Q4" - -#. module: account_financial_report -#: help:afr,analytic_ledger:0 -#: help:wizard.report,analytic_ledger:0 -msgid "Allows to Generate an Analytic Ledger for accounts with moves. Available when Balance Sheet and 'Initial | Debit | Credit | YTD' are selected" -msgstr "Permite generar un Mayor Analítico para las cuentas con movimientos. Disponible cuando se selecciona 'Balance General' e 'Inicial | Débito | Crédito | YTD'" - -#. module: account_financial_report -#: help:wizard.report,afr_id:0 -msgid "If you have already set a Custom Report, Select it Here." -msgstr "Si ya ha configurado un Reporte Personalizado, Selecciónelo Aquí." - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "Initial | Debit | Credit | Period | YTD" -msgstr "Inicial | Débito | Crédito | Período | YTD" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "End. Balance" -msgstr "Bal. Final" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "DATE" -msgstr "FECHA" - -#. module: account_financial_report -#: view:res.company:0 -msgid "Keep sign on Reports for these accounts and children accounts that are within Accreditable Accounts" -msgstr "Mantiene el signo en los reportes para estas cuentas y las cuentas hijas que están dentro de las Cuentas Acreditables" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:100 -#: code:addons/account_financial_report/report/parser.py:109 -#, python-format -msgid "From " -msgstr "Desde " - -#. module: account_financial_report -#: field:afr,inf_type:0 -#: field:wizard.report,inf_type:0 -msgid "Type" -msgstr "Tipo" - -#. module: account_financial_report -#: field:afr,date_to:0 -#: field:wizard.report,date_to:0 -msgid "End date" -msgstr "Fecha final" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Account's Sign Conventions" -msgstr "Convención de Signos de las Cuentas" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.13_col_report -msgid "Balance 13 Columnas" -msgstr "Balance 13 Columnas" - -#. module: account_financial_report -#: view:res.company:0 -msgid "Accreditable Accounts" -msgstr "Cuentas Acreditables" - -#. module: account_financial_report -#: model:ir.model,name:account_financial_report.model_afr -msgid "afr" -msgstr "afr" - -#. module: account_financial_report -#: field:afr,name:0 -msgid "Name" -msgstr "Nombre" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:83 -#: field:afr,analytic_ledger:0 -#: model:ir.actions.report.xml,name:account_financial_report.analytic_ledger_report -#: field:wizard.report,analytic_ledger:0 -#, python-format -msgid "Analytic Ledger" -msgstr "Mayor Analítico" - -#. module: account_financial_report -#: view:res.company:0 -#: field:res.company,debit_account_ids:0 -msgid "Debitable Accounts" -msgstr "Cuentas Debitables" - -#. module: account_financial_report -#: help:afr,period_ids:0 -#: help:wizard.report,periods:0 -msgid "All periods in the fiscal year if empty" -msgstr "Todos los períodos en el ejercicio fiscal si se deja vacío" - -#. module: account_financial_report -#: code:addons/account_financial_report/wizard/wizard.py:179 -#: code:addons/account_financial_report/wizard/wizard.py:242 -#, python-format -msgid "Error !" -msgstr "Error !" - -#. module: account_financial_report -#: model:ir.model,name:account_financial_report.model_wizard_report -msgid "wizard.report" -msgstr "wizard.report" - -#. module: account_financial_report -#: field:afr,lab_str:0 -#: field:wizard.report,lab_str:0 -msgid "Description" -msgstr "Descripción" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Report Info" -msgstr "Información del Reporte" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "All Accounts" -msgstr "Todas las Cuentas" - -#. module: account_financial_report -#: field:afr,tot_check:0 -#: field:wizard.report,tot_check:0 -msgid "Summarize?" -msgstr "Totalizar?" - -#. module: account_financial_report -#: help:afr,tot_check:0 -#: help:wizard.report,tot_check:0 -msgid "Checking will add a new line at the end of the Report which will Summarize Columns in Report" -msgstr "Seleccionarlo agregará una nueva línea al final del Reporte el cual Totalizará las Columnas en el Reporte" - -#. module: account_financial_report -#: help:afr,lab_str:0 -#: help:wizard.report,lab_str:0 -msgid "Description for the Summary" -msgstr "Descripción para el Total" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "12 Months | YTD" -msgstr "12 Meses | YTD" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Total" -msgstr "Total" - diff --git a/account_financial_report/i18n/es_VE.po b/account_financial_report/i18n/es_VE.po deleted file mode 100644 index 81212bc3..00000000 --- a/account_financial_report/i18n/es_VE.po +++ /dev/null @@ -1,687 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * account_financial_report -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-06-17 21:47+0000\n" -"PO-Revision-Date: 2013-06-17 21:47+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_financial_report -#: view:res.company:0 -msgid "Reverse sign on Reports for these accounts and children accounts that are within Debitable Accounts" -msgstr "Invierte el signo en los reportes para estas cuentas y las cuentas hijas que están dentro de las Cuentas Debitables" - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "No Filter" -msgstr "Sin Filtro" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "With Balance / Movements" -msgstr "Con Saldo / Movimientos" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.4_col_report -msgid "Balance 4 Columnas" -msgstr "Balance 4 Columnas" - -#. module: account_financial_report -#: view:res.company:0 -msgid "An accreditable account is one which grows in the credit and diminishes in the debit" -msgstr "Una cuenta acreditable es una que crece por el crédito y disminuye por el débito." - -#. module: account_financial_report -#: report:afr.1cols:0 -#: report:afr.4cols:0 -#: report:afr.analytic.ledger:0 -msgid "BALANCE" -msgstr "BALANCE" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:85 -#: selection:afr,inf_type:0 -#: selection:wizard.report,inf_type:0 -#, python-format -msgid "Balance Sheet" -msgstr "Balance General" - -#. module: account_financial_report -#: field:afr,company_id:0 -#: field:wizard.report,company_id:0 -msgid "Company" -msgstr "Compañía" - -#. module: account_financial_report -#: code:addons/account_financial_report/wizard/wizard.py:150 -#, python-format -msgid "Write a Description for your Summary Total" -msgstr "Escriba una Descripción para el total del Sumario" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.5_col_report -msgid "Balance 5 Columnas" -msgstr "Balance 5 Columnas" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.qtr_col_report -msgid "Balance QTRs Columnas" -msgstr "Balance QTRs Columnas" - -#. module: account_financial_report -#: report:afr.5cols:0 -msgid "INIT. BAL." -msgstr "BAL. INIC." - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "By Date and Period" -msgstr "Por fecha y período" - -#. module: account_financial_report -#: code:addons/account_financial_report/model/account_financial_report.py:77 -#, python-format -msgid "Copy of %s" -msgstr "Copia de %s" - -#. module: account_financial_report -#: field:afr,account_ids:0 -#: field:wizard.report,account_list:0 -msgid "Root accounts" -msgstr "Cuentas raíces" - -#. module: account_financial_report -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -msgid "PERIOD" -msgstr "PERIODO" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "With Balance" -msgstr "Con Balance" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "12" -msgstr "12" - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "By Date" -msgstr "Por Fecha" - -#. module: account_financial_report -#: code:addons/account_financial_report/wizard/wizard.py:242 -#, python-format -msgid "La interseccion entre el periodo y fecha es vacio" -msgstr "La interseccion entre el periodo y fecha es vacio" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Company Info" -msgstr "Información de la Compañía" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:344 -#: code:addons/account_financial_report/wizard/wizard.py:189 -#: code:addons/account_financial_report/wizard/wizard.py:193 -#, python-format -msgid "UserError" -msgstr "UserError" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "JOURNAL ENTRY" -msgstr "ASIENTO DIARIO" - -#. module: account_financial_report -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -msgid "CREDIT" -msgstr "CREDITO" - -#. module: account_financial_report -#: view:wizard.report:0 -msgid "_Cancel" -msgstr "_Cancelar" - -#. module: account_financial_report -#: view:res.company:0 -msgid "Account's Sign on Reports" -msgstr "Signo de las Cuentas en Reportes" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.2_col_report -msgid "Balance 2 Columnas" -msgstr "Balance 2 Columnas" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "Debit | Credit" -msgstr "Débito | Crédito" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Please check the [ Account's Sign on Reports ] Section in the Company" -msgstr "Por Favor, Verifique la Sección [ Signo de las Cuentas en Reportes ] en la Compañía" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.1cols:0 -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.analytic.ledger:0 -#: report:afr.qtrcols:0 -msgid "CODE" -msgstr "CÓDIGO" - -#. module: account_financial_report -#: view:res.company:0 -msgid "A debitable account is one which grows in the debit and diminishes in the credit" -msgstr "Una cuenta debitable es una que crece por el débito y disminuye por el crédito." - -#. module: account_financial_report -#: report:afr.5cols:0 -msgid "(Expressed in" -msgstr "(Expresado en" - -#. module: account_financial_report -#: report:afr.4cols:0 -#: report:afr.analytic.ledger:0 -msgid "INITIAL" -msgstr "INICIAL" - -#. module: account_financial_report -#: field:wizard.report,afr_id:0 -msgid "Custom Report" -msgstr "Reporte Personalizado" - -#. module: account_financial_report -#: field:afr,date_from:0 -#: field:wizard.report,date_from:0 -msgid "Start date" -msgstr "Fecha Inicial" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Accounts to Include" -msgstr "Cuentas a incluir" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:100 -#: code:addons/account_financial_report/report/parser.py:109 -#, python-format -msgid " to " -msgstr " hasta " - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "02" -msgstr "02" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "03" -msgstr "03" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "01" -msgstr "01" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "06" -msgstr "06" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "07" -msgstr "07" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "04" -msgstr "04" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "05" -msgstr "05" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "08" -msgstr "08" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "09" -msgstr "09" - -#. module: account_financial_report -#: view:afr:0 -#: model:ir.ui.menu,name:account_financial_report.account_financial_report_menu -msgid "Account Financial Report (Templates)" -msgstr "Reportes Financieros (Plantillas)" - -#. module: account_financial_report -#: field:afr,fiscalyear_id:0 -#: field:wizard.report,fiscalyear:0 -msgid "Fiscal year" -msgstr "Ejercicio Fiscal" - -#. module: account_financial_report -#: model:ir.actions.act_window,help:account_financial_report.account_financial_report_action -msgid "Create your own Customized Account Financial Reports, in here, you will be able to create Templates for generating Two types of Reports: Balance Sheets and Income Statements, incluiding Analytic Ledgers. Besides, you can select within a set of choices to get better detailed report, be it that you ask it by one or several periods, by months (12 Months + YTD), or by quarters (4QRT's + YTD). Even you can get your reports in currencies other than the one set on your company." -msgstr "Cree sus propios Reportes Financieros Personalizados, aquí, Vd. podrá se capaz de Diseñar las Plantillas para la generación de Dos Tipos de Reportes: Balances Generales y Estados de Resultados, incluyendo Mayores Analíticos. Además, podrá seleccionar entre un conjunto de opciones para obtener un mejor reporte detallado, sea que lo pida para un período determinado, por meses (12 MESES + YTD) o por trimestres (4to's + YTD). Incluso puede obtener reportes en otras monedas distintas a la establecida en su compañia." - -#. module: account_financial_report -#: field:res.company,credit_account_ids:0 -msgid "Creditable Accounts" -msgstr "Cuentas Acreditables" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:344 -#, python-format -msgid "The Selected Fiscal Year Does not have Regular Periods" -msgstr "El Ejercicio Fiscal Seleccionado no tiene Períodos Regulares" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.5cols:0 -#: report:afr.qtrcols:0 -msgid "YTD" -msgstr "YTD" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Periods to Include" -msgstr "Períodos a incluir" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "With movements" -msgstr "Con Movimientos" - -#. module: account_financial_report -#: field:afr,currency_id:0 -#: field:wizard.report,currency_id:0 -msgid "Currency" -msgstr "Moneda" - -#. module: account_financial_report -#: field:afr,display_account:0 -#: field:wizard.report,display_account:0 -msgid "Display accounts" -msgstr "Mostrar cuentas" - -#. module: account_financial_report -#: field:afr,display_account_level:0 -#: field:wizard.report,display_account_level:0 -msgid "Up to level" -msgstr "Hasta nivel" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "PARTNER" -msgstr "PARTNER" - -#. module: account_financial_report -#: help:afr,currency_id:0 -#: help:wizard.report,currency_id:0 -msgid "Currency at which this report will be expressed. If not selected will be used the one set in the company" -msgstr "Moneda con la cual este reporte será expresado. Si no se selecciona se usará la que está establecida en la compañía" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.1cols:0 -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -#: report:afr.qtrcols:0 -msgid "ACCOUNT" -msgstr "CUENTA" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "Pag.:" -msgstr "Pág.:" - -#. module: account_financial_report -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.analytic.ledger:0 -msgid "DEBIT" -msgstr "DÉBITO" - -#. module: account_financial_report -#: field:afr,columns:0 -#: field:wizard.report,columns:0 -msgid "Columns" -msgstr "Columnas" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "REFERENCE" -msgstr "REFERENCIA" - -#. module: account_financial_report -#: selection:afr,filter:0 -#: selection:wizard.report,filter:0 -msgid "By Period" -msgstr "Por Período" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "4 QTR's | YTD" -msgstr "4 TRM's | YTD" - -#. module: account_financial_report -#: model:ir.actions.act_window,name:account_financial_report.action_wizard_report -#: model:ir.ui.menu,name:account_financial_report.menu_wizard_report -msgid "Account Financial Report (Multireports)" -msgstr "Reportes Financieros (Multireportes)" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Accounts Info" -msgstr "Información de Cuentas" - -#. module: account_financial_report -#: help:afr,display_account_level:0 -#: help:wizard.report,display_account_level:0 -msgid "Display accounts up to this level (0 to show all)" -msgstr "Se mostrarán las cuentas hasta este nivel (Seleccionar 0 las mostrará todas)" - -#. module: account_financial_report -#: model:ir.model,name:account_financial_report.model_res_company -msgid "Companies" -msgstr "Compañías" - -#. module: account_financial_report -#: help:afr,fiscalyear_id:0 -#: help:wizard.report,fiscalyear:0 -msgid "Fiscal Year for this report" -msgstr "Ejercicio Fiscal para este reporte" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:87 -#: selection:afr,inf_type:0 -#: selection:wizard.report,inf_type:0 -#, python-format -msgid "Income Statement" -msgstr "Estado de Resultados" - -#. module: account_financial_report -#: report:afr.13cols:0 -#: report:afr.1cols:0 -#: report:afr.2cols:0 -#: report:afr.4cols:0 -#: report:afr.5cols:0 -#: report:afr.qtrcols:0 -msgid "/ Pág.:" -msgstr "/ Pág.:" - -#. module: account_financial_report -#: model:ir.actions.act_window,name:account_financial_report.account_financial_report_action -#: model:res.groups,name:account_financial_report.group_afreport -#: view:wizard.report:0 -msgid "Account Financial Report" -msgstr "Reportes Financieros" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "11" -msgstr "11" - -#. module: account_financial_report -#: report:afr.13cols:0 -msgid "10" -msgstr "10" - -#. module: account_financial_report -#: report:afr.5cols:0 -msgid "Code" -msgstr "Código" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.1_col_report -msgid "Balance 1 Columna" -msgstr "Balance 1 Columna" - -#. module: account_financial_report -#: view:wizard.report:0 -msgid "Print" -msgstr "Imprimir" - -#. module: account_financial_report -#: field:afr,filter:0 -#: field:wizard.report,filter:0 -msgid "Date/Period Filter" -msgstr "Filtro Fecha/Período" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "FiscalYear Info" -msgstr "Información del Ejercicio Fiscal" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "Initial | Debit | Credit | YTD" -msgstr "Inicial | Débito | Crédito | YTD" - -#. module: account_financial_report -#: field:afr,period_ids:0 -#: field:wizard.report,periods:0 -msgid "Periods" -msgstr "Períodos" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q1" -msgstr "Q1" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q3" -msgstr "Q3" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q2" -msgstr "Q2" - -#. module: account_financial_report -#: report:afr.qtrcols:0 -msgid "Q4" -msgstr "Q4" - -#. module: account_financial_report -#: help:afr,analytic_ledger:0 -#: help:wizard.report,analytic_ledger:0 -msgid "Allows to Generate an Analytic Ledger for accounts with moves. Available when Balance Sheet and 'Initial | Debit | Credit | YTD' are selected" -msgstr "Permite generar un Mayor Analítico para las cuentas con movimientos. Disponible cuando se selecciona 'Balance General' e 'Inicial | Débito | Crédito | YTD'" - -#. module: account_financial_report -#: help:wizard.report,afr_id:0 -msgid "If you have already set a Custom Report, Select it Here." -msgstr "Si ya ha configurado un Reporte Personalizado, Selecciónelo Aquí." - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "Initial | Debit | Credit | Period | YTD" -msgstr "Inicial | Débito | Crédito | Período | YTD" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "End. Balance" -msgstr "Bal. Final" - -#. module: account_financial_report -#: report:afr.analytic.ledger:0 -msgid "DATE" -msgstr "FECHA" - -#. module: account_financial_report -#: view:res.company:0 -msgid "Keep sign on Reports for these accounts and children accounts that are within Accreditable Accounts" -msgstr "Mantiene el signo en los reportes para estas cuentas y las cuentas hijas que están dentro de las Cuentas Acreditables" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:100 -#: code:addons/account_financial_report/report/parser.py:109 -#, python-format -msgid "From " -msgstr "Desde " - -#. module: account_financial_report -#: field:afr,inf_type:0 -#: field:wizard.report,inf_type:0 -msgid "Type" -msgstr "Tipo" - -#. module: account_financial_report -#: field:afr,date_to:0 -#: field:wizard.report,date_to:0 -msgid "End date" -msgstr "Fecha final" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Account's Sign Conventions" -msgstr "Convención de Signos de las Cuentas" - -#. module: account_financial_report -#: model:ir.actions.report.xml,name:account_financial_report.13_col_report -msgid "Balance 13 Columnas" -msgstr "Balance 13 Columnas" - -#. module: account_financial_report -#: view:res.company:0 -msgid "Accreditable Accounts" -msgstr "Cuentas Acreditables" - -#. module: account_financial_report -#: model:ir.model,name:account_financial_report.model_afr -msgid "afr" -msgstr "afr" - -#. module: account_financial_report -#: field:afr,name:0 -msgid "Name" -msgstr "Nombre" - -#. module: account_financial_report -#: code:addons/account_financial_report/report/parser.py:83 -#: field:afr,analytic_ledger:0 -#: model:ir.actions.report.xml,name:account_financial_report.analytic_ledger_report -#: field:wizard.report,analytic_ledger:0 -#, python-format -msgid "Analytic Ledger" -msgstr "Mayor Analítico" - -#. module: account_financial_report -#: view:res.company:0 -#: field:res.company,debit_account_ids:0 -msgid "Debitable Accounts" -msgstr "Cuentas Debitables" - -#. module: account_financial_report -#: help:afr,period_ids:0 -#: help:wizard.report,periods:0 -msgid "All periods in the fiscal year if empty" -msgstr "Todos los períodos en el ejercicio fiscal si se deja vacío" - -#. module: account_financial_report -#: code:addons/account_financial_report/wizard/wizard.py:179 -#: code:addons/account_financial_report/wizard/wizard.py:242 -#, python-format -msgid "Error !" -msgstr "Error !" - -#. module: account_financial_report -#: model:ir.model,name:account_financial_report.model_wizard_report -msgid "wizard.report" -msgstr "wizard.report" - -#. module: account_financial_report -#: field:afr,lab_str:0 -#: field:wizard.report,lab_str:0 -msgid "Description" -msgstr "Descripción" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Report Info" -msgstr "Información del Reporte" - -#. module: account_financial_report -#: selection:afr,display_account:0 -#: selection:wizard.report,display_account:0 -msgid "All Accounts" -msgstr "Todas las Cuentas" - -#. module: account_financial_report -#: field:afr,tot_check:0 -#: field:wizard.report,tot_check:0 -msgid "Summarize?" -msgstr "Totalizar?" - -#. module: account_financial_report -#: help:afr,tot_check:0 -#: help:wizard.report,tot_check:0 -msgid "Checking will add a new line at the end of the Report which will Summarize Columns in Report" -msgstr "Seleccionarlo agregará una nueva línea al final del Reporte el cual Totalizará las Columnas en el Reporte" - -#. module: account_financial_report -#: help:afr,lab_str:0 -#: help:wizard.report,lab_str:0 -msgid "Description for the Summary" -msgstr "Descripción para el Total" - -#. module: account_financial_report -#: selection:afr,columns:0 -#: selection:wizard.report,columns:0 -msgid "12 Months | YTD" -msgstr "12 Meses | YTD" - -#. module: account_financial_report -#: view:afr:0 -#: view:wizard.report:0 -msgid "Total" -msgstr "Total" - diff --git a/account_financial_report/model/__init__.py b/account_financial_report/model/__init__.py deleted file mode 100755 index bb6a98b0..00000000 --- a/account_financial_report/model/__init__.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python -# -*- encoding: utf-8 -*- -########################################################################### -# Module Writen to OpenERP, Open Source Management Solution -# Copyright (C) OpenERP Venezuela (). -# All Rights Reserved -# Credits###################################################### -# Coded by: Humberto Arocha -# Planified by: Rafael Silva -# Audited by: Nhomar Hernandez -############################################################################# -# 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 . -########################################################################## - -from . import account_financial_report -from . import res_company diff --git a/account_financial_report/model/account_financial_report.py b/account_financial_report/model/account_financial_report.py deleted file mode 100644 index 9b4d28b6..00000000 --- a/account_financial_report/model/account_financial_report.py +++ /dev/null @@ -1,216 +0,0 @@ -# -*- encoding: utf-8 -*- -########################################################################### -# Module Writen to OpenERP, Open Source Management Solution -# Copyright (C) OpenERP Venezuela (). -# All Rights Reserved -# Credits###################################################### -# Coded by: Humberto Arocha humberto@openerp.com.ve -# Angelica Barrios angelicaisabelb@gmail.com -# Jordi Esteve -# Javier Duran -# Planified by: Humberto Arocha -# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com -# Audited by: Humberto Arocha humberto@openerp.com.ve -############################################################################# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -############################################################################## - -from openerp.osv import osv, fields -import time -from openerp.tools.translate import _ - - -class account_financial_report(osv.osv): - _name = "afr" - - _columns = { - 'name': fields.char('Name', size=128, required=True), - 'company_id': fields.many2one('res.company', 'Company', required=True), - 'currency_id': fields.many2one('res.currency', 'Currency', - help="Currency at which this report \ - will be expressed. If not selected \ - will be used the one set in the \ - company"), - 'inf_type': fields.selection([('BS', 'Balance Sheet'), - ('IS', 'Income Statement')], - 'Type', - required=True), - 'columns': fields.selection( - [('one', 'End. Balance'), - ('two', 'Debit | Credit'), - ('four', 'Initial | Debit | Credit | YTD'), - ('five', 'Initial | Debit | Credit | Period | YTD'), - ('qtr', "4 QTR's | YTD"), - ('thirteen', '12 Months | YTD')], 'Columns', required=True), - 'display_account': fields.selection( - [('all', 'All Accounts'), - ('bal', 'With Balance'), - ('mov', 'With movements'), - ('bal_mov', 'With Balance / Movements')], 'Display accounts'), - 'display_account_level': fields.integer('Up to level', - help='Display accounts up to \ - this level (0 to show all)'), - 'account_ids': fields.many2many('account.account', 'afr_account_rel', - 'afr_id', 'account_id', - 'Root accounts', required=True), - 'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal year', - help='Fiscal Year for this report', - required=True), - 'period_ids': fields.many2many( - 'account.period', 'afr_period_rel', 'afr_id', 'period_id', - 'Periods', help='All periods in the fiscal year if empty'), - - 'analytic_ledger': fields.boolean( - 'Analytic Ledger', - help="Allows to Generate an Analytic Ledger for accounts with \ - moves. Available when Balance Sheet and 'Initial | Debit \ - | Credit | YTD' are selected"), - 'journal_ledger': fields.boolean( - 'journal Ledger', - help="Allows to Generate an journal Ledger for accounts with \ - moves. Available when Balance Sheet and 'Initial | Debit | \ - Credit | YTD' are selected"), - 'partner_balance': fields.boolean( - 'Partner Balance', - help="Allows to Generate a Partner Balance for accounts with \ - moves. Available when Balance Sheet and 'Initial | Debit | \ - Credit | YTD' are selected"), - 'tot_check': fields.boolean( - 'Summarize?', - help='Checking will add a new line at the end of the Report which \ - will Summarize Columns in Report'), - 'lab_str': fields.char('Description', - help='Description for the Summary', - size=128), - 'target_move': fields.selection( - [('posted', 'All Posted Entries'), - ('all', 'All Entries'), ], - 'Entries to Include', required=True, - help='Print All Accounting Entries or just Posted \ - Accounting Entries'), - - # ~ Deprecated fields - 'filter': fields.selection([('bydate', 'By Date'), - ('byperiod', 'By Period'), - ('all', 'By Date and Period'), - ('none', 'No Filter')], - 'Date/Period Filter'), - 'date_to': fields.date('End date'), - 'date_from': fields.date('Start date'), - } - - _defaults = { - 'display_account_level': lambda *a: 0, - 'inf_type': lambda *a: 'BS', - 'company_id': lambda self, cr, uid, c: - self.pool.get( - 'res.company')._company_default_get( - cr, - uid, - 'account.invoice', - context=c), - 'fiscalyear_id': lambda self, cr, uid, c: - self.pool.get('account.fiscalyear').find(cr, uid), - 'display_account': lambda *a: 'bal_mov', - 'columns': lambda *a: 'five', - - 'date_from': lambda *a: time.strftime('%Y-%m-%d'), - 'date_to': lambda *a: time.strftime('%Y-%m-%d'), - 'filter': lambda *a: 'byperiod', - 'target_move': 'posted', - } - - def copy(self, cr, uid, id, defaults, context=None): - if context is None: - context = {} - previous_name = self.browse(cr, uid, id, context=context).name - new_name = _('Copy of %s') % previous_name - lst = self.search(cr, uid, [( - 'name', 'like', new_name)], context=context) - if lst: - new_name = '%s (%s)' % (new_name, len(lst) + 1) - defaults['name'] = new_name - return ( - super( - account_financial_report, - self).copy( - cr, - uid, - id, - defaults, - context=context) - ) - - def onchange_inf_type(self, cr, uid, ids, inf_type, context=None): - if context is None: - context = {} - res = {'value': {}} - - if inf_type != 'BS': - res['value'].update({'analytic_ledger': False}) - - return res - - def onchange_columns(self, cr, uid, ids, columns, - fiscalyear_id, period_ids, context=None): - if context is None: - context = {} - res = {'value': {}} - - if columns != 'four': - res['value'].update({'analytic_ledger': False}) - - if columns in ('qtr', 'thirteen'): - p_obj = self.pool.get("account.period") - period_ids = p_obj.search(cr, uid, - [('fiscalyear_id', '=', fiscalyear_id), - ('special', '=', False)], - context=context) - res['value'].update({'period_ids': period_ids}) - else: - res['value'].update({'period_ids': []}) - return res - - def onchange_analytic_ledger( - self, cr, uid, ids, company_id, analytic_ledger, context=None): - if context is None: - context = {} - context['company_id'] = company_id - res = {'value': {}} - cur_id = self.pool.get('res.company').browse( - cr, uid, company_id, context=context).currency_id.id - res['value'].update({'currency_id': cur_id}) - return res - - def onchange_company_id(self, cr, uid, ids, company_id, context=None): - if context is None: - context = {} - context['company_id'] = company_id - res = {'value': {}} - - if not company_id: - return res - - cur_id = self.pool.get('res.company').browse( - cr, uid, company_id, context=context).currency_id.id - fy_id = self.pool.get('account.fiscalyear').find( - cr, uid, context=context) - res['value'].update({'fiscalyear_id': fy_id}) - res['value'].update({'currency_id': cur_id}) - res['value'].update({'account_ids': []}) - res['value'].update({'period_ids': []}) - return res - - -account_financial_report() diff --git a/account_financial_report/model/res_company.py b/account_financial_report/model/res_company.py deleted file mode 100755 index 639f29c4..00000000 --- a/account_financial_report/model/res_company.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/python -# -*- encoding: utf-8 -*- -########################################################################### -# Module Writen to OpenERP, Open Source Management Solution -# Copyright (C) OpenERP Venezuela (). -# All Rights Reserved -# Credits###################################################### -# Coded by: Humberto Arocha -# Planified by: Rafael Silva -# Audited by: Nhomar Hernandez -############################################################################# -# 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 . -########################################################################## - -from openerp.osv import orm, fields - - -class res_company(orm.Model): - _inherit = 'res.company' - _columns = { - 'credit_account_ids': fields.many2many('account.account', - 'credit_account_company_rel', - 'company_id', 'account_id', - 'Creditable Accounts'), - 'debit_account_ids': fields.many2many('account.account', - 'debit_account_company_rel', - 'company_id', 'account_id', - 'Debitable Accounts'), - } diff --git a/account_financial_report/report/__init__.py b/account_financial_report/report/__init__.py deleted file mode 100644 index ab266206..00000000 --- a/account_financial_report/report/__init__.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- encoding: utf-8 -*- -########################################################################### -# Module Writen to OpenERP, Open Source Management Solution -# Copyright (C) OpenERP Venezuela (). -# All Rights Reserved -# Credits###################################################### -# Coded by: Humberto Arocha humberto@openerp.com.ve -# Angelica Barrios angelicaisabelb@gmail.com -# Jordi Esteve -# Planified by: Humberto Arocha -# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com -# Audited by: Humberto Arocha humberto@openerp.com.ve -############################################################################# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -############################################################################## - -from . import parser diff --git a/account_financial_report/report/balance_full.rml b/account_financial_report/report/balance_full.rml deleted file mode 100644 index f828965e..00000000 --- a/account_financial_report/report/balance_full.rml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[setLang(user.lang)]] - - - - - - [[ setTag('para','para',{'alignment':"RIGHT"}) ]] - CODE - - - - ACCOUNT - - - BALANCE - - - - - [[ repeatIn(lines(data['form']), 'a') ]] - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[a['label']==True and a['code'] or '' ]] - - - - - [[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]] - [[ a['type']=='view' and a['name'].upper() or a['name'].title() ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - - diff --git a/account_financial_report/report/balance_full_13_cols.rml b/account_financial_report/report/balance_full_13_cols.rml deleted file mode 100644 index 9387a393..00000000 --- a/account_financial_report/report/balance_full_13_cols.rml +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[setLang(user.lang)]] - - - - - CODE - - - - ACCOUNT - - - 01 - - - 02 - - - 03 - - - 04 - - - 05 - - - 06 - - - 07 - - - 08 - - - 09 - - - 10 - - - 11 - - - 12 - - - YTD - - - - - [[ repeatIn(lines(data['form']), 'a') ]] - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[a['label']==True and a['code'] or '' ]] - - - - - [[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]] - [[ a['type']=='view' and a['name'].upper() or a['name'].title() ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal1'] and a['bal1'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal2'] and a['bal2'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal3'] and a['bal3'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal4'] and a['bal4'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal5'] and a['bal5'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal6'] and a['bal6'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal7'] and a['bal7'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal8'] and a['bal8'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal9'] and a['bal9'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal10'] and a['bal10'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal11'] and a['bal11'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal12'] and a['bal12'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal13'] and a['bal13'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - - diff --git a/account_financial_report/report/balance_full_2_cols.rml b/account_financial_report/report/balance_full_2_cols.rml deleted file mode 100644 index 7e9e4f15..00000000 --- a/account_financial_report/report/balance_full_2_cols.rml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[setLang(user.lang)]] - - - - - CODE - - - - ACCOUNT - - - DEBIT - - - CREDIT - - - - - [[ repeatIn(lines(data['form']), 'a') ]] - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[a['label']==True and a['code'] or '' ]] - - - - - [[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]] - [[ a['type']=='view' and a['name'].upper() or a['name'].title() ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']] - - - - - - - diff --git a/account_financial_report/report/balance_full_4_cols.rml b/account_financial_report/report/balance_full_4_cols.rml deleted file mode 100644 index c96674f0..00000000 --- a/account_financial_report/report/balance_full_4_cols.rml +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[setLang(user.lang)]] - - - - - CODE - - - - ACCOUNT - - - INITIAL - - - DEBIT - - - CREDIT - - - BALANCE - - - - - [[ repeatIn(lines(data['form']), 'a') ]] - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[a['label']==True and a['code'] or '' ]] - - - - - [[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]] - [[ a['type']=='view' and a['name'].upper() or a['name'].title() ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balanceinit'] and a['balanceinit'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - - diff --git a/account_financial_report/report/balance_full_4_cols_analytic_ledger.rml b/account_financial_report/report/balance_full_4_cols_analytic_ledger.rml deleted file mode 100644 index 0576ccb6..00000000 --- a/account_financial_report/report/balance_full_4_cols_analytic_ledger.rml +++ /dev/null @@ -1,294 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[setLang(user.lang)]] - - - - - - CODE - - - - ACCOUNT - - - INITIAL - - - DEBIT - - - CREDIT - - - BALANCE - - - - - - - - - - DATE - - - - - PERIOD - - - - REFERENCE - - - JOURNAL ENTRY - - - PARTNER - - - - - - - - - - - - - - - - - -
- [[ repeatIn([x for x in lines(data['form']) if x['type'] != 'view'], 'a') ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[a['label']==True and a['code'] or '' ]] - - - - - [[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}))) or removeParentNode('font') ]] - [[ a['type']=='view' and a['name'].upper() or a['name'].title() ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balanceinit'] and a['balanceinit'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']] - - - - - -
- [[ repeatIn(a['mayor'], 'm') ]] - - - - - - [[ formatLang( m['date'], date=True) ]] - - - - - [[ m['period'] ]] - - - - - [[ m['name'] ]] [[ m['ref'] and (' - Ref %s'%m['ref']) or '' ]] - - - - - [[ m['entry'] ]] - - - - - - [[ m['partner'] ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(m['debit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(m['credit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(m['balance'] and m['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']] - - - - -
- -
- -
-
diff --git a/account_financial_report/report/balance_full_4_cols_journal_ledger.rml b/account_financial_report/report/balance_full_4_cols_journal_ledger.rml deleted file mode 100644 index 749798ac..00000000 --- a/account_financial_report/report/balance_full_4_cols_journal_ledger.rml +++ /dev/null @@ -1,397 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[setLang(user.lang)]] - - - - - - CODE - - - - ACCOUNT - - - INITIAL - - - DEBIT - - - CREDIT - - - BALANCE - - - - - - - - - DATE - - - - - PERIOD - - - - JOURNAL ENTRY - - - - - - - - - - - - - - - - - - -
- [[ repeatIn([x for x in lines(data['form']) if x['type'] != 'view'], 'a') ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[a['label']==True and a['code'] or '' ]] - - - - - [[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}))) or removeParentNode('font') ]] - [[ a['type']=='view' and a['name'].upper() or a['name'].title() ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balanceinit'] and a['balanceinit'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']] - - - - - -
- [[ repeatIn(a['journal'], 'j') ]] - - - - - - [[ formatLang( j['date'], date=True) ]] - - - - - [[ j['period'] ]] - - - - - [[ j['name'] ]] - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- [[ repeatIn(j.get('obj').line_id, 'k') ]] - - - - - [[ k.account_id.code == a['code'] and k.name or removeParentNode('blockTable') ]] - - - - - [[ k.ref and k.ref or '']] - - - - - [[ k.partner_id and k.partner_id.name or '']] - - - - - [[ k.account_id and k.account_id.code or '']] - - - - - [[ k.account_id and k.account_id.name or '']] - - - - - [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ k.debit and formatLang(k.debit, digits=2, grouping=True) or '' ]] - - - - - [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ k.credit and formatLang(k.credit, digits=2, grouping=True) or '' ]] - - - - - [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ k.reconcile_id and k.reconcile_id.name or k.reconcile_partial_id and k.reconcile_partial_id.name or '']] - - - - - - - - - [[ k.account_id.code != a['code'] and k.name or removeParentNode('blockTable') ]] - - - - - [[ k.ref and k.ref or '']] - - - - - [[ k.partner_id and k.partner_id.name or '']] - - - - - [[ k.account_id and k.account_id.code or '']] - - - - - [[ k.account_id and k.account_id.name or '']] - - - - - [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ k.debit and formatLang(k.debit, digits=2, grouping=True) or '' ]] - - - - - [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ k.credit and formatLang(k.credit, digits=2, grouping=True) or '' ]] - - - - - [[ k.account_id.type<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ k.reconcile_id and k.reconcile_id.name or k.reconcile_partial_id and k.reconcile_partial_id.name or '']] - - - - -
- -
- -
- -
-
diff --git a/account_financial_report/report/balance_full_4_cols_partner_balance.rml b/account_financial_report/report/balance_full_4_cols_partner_balance.rml deleted file mode 100644 index 6e1c783f..00000000 --- a/account_financial_report/report/balance_full_4_cols_partner_balance.rml +++ /dev/null @@ -1,273 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[setLang(user.lang)]] - - - - - - CODE - - - - ACCOUNT - - - INITIAL - - - DEBIT - - - CREDIT - - - BALANCE - - - - - - - - - - - - - - - PARTNER - - - - - - - - - - - - - - - - - - - - - -
- [[ repeatIn([x for x in lines(data['form']) if x['type'] != 'view'], 'a') ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[a['label']==True and a['code'] or '' ]] - - - - - [[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}))) or removeParentNode('font') ]] - [[ a['type']=='view' and a['name'].upper() or a['name'].title() ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balanceinit'] and a['balanceinit'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier-Bold"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']] - - - - - -
- [[ repeatIn(a['partner'], 'm') ]] - - - - - - - - - - [[ m['partner_name'] ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(m['balanceinit'] and m['balanceinit'] * m.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(m['debit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(m['credit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(m['balance'] and m['balance'] * a.get('change_sign',1.0) or 0.0, digits=2, grouping=True) or '']] - - - - -
- -
- -
-
diff --git a/account_financial_report/report/balance_full_5_cols.rml b/account_financial_report/report/balance_full_5_cols.rml deleted file mode 100644 index 4c54f9de..00000000 --- a/account_financial_report/report/balance_full_5_cols.rml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[setLang(user.lang)]] - - - - - Code - - - - ACCOUNT - - - INIT. BAL. - - - DEBIT - - - CREDIT - - - PERIOD - - - YTD - - - - - [[ repeatIn(lines(data['form']), 'a') ]] - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[a['label']==True and a['code'] or '' ]] - - - - - [[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]] - [[ a['type']=='view' and a['name'].upper() or a['name'].title() ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a.get('change_sign', 1.0) * a.get('balanceinit'), digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a.get('change_sign', 1.0) * a.get('ytd'), digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a.get('change_sign', 1.0) * a.get('balance'), digits=2, grouping=True) or '']] - - - - - - diff --git a/account_financial_report/report/balance_full_qtr_cols.rml b/account_financial_report/report/balance_full_qtr_cols.rml deleted file mode 100644 index 4fb1f8c6..00000000 --- a/account_financial_report/report/balance_full_qtr_cols.rml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[setLang(user.lang)]] - - - - - CODE - - - - ACCOUNT - - - Q1 - - - Q2 - - - Q3 - - - Q4 - - - YTD - - - - - [[ repeatIn(lines(data['form']), 'a') ]] - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[a['label']==True and a['code'] or '' ]] - - - - - [[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]] - [[ a['type']=='view' and a['name'].upper() or a['name'].title() ]] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal1'] and (a['bal1'] * a.get('change_sign',1)) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal2'] and a['bal2'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal3'] and a['bal3'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal4'] and a['bal4'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - [[ a['type']<>'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]] - [[ (a['total']==True) and formatLang(a['bal5'] and a['bal5'] * a.get('change_sign',1) or 0.0, digits=2, grouping=True) or '']] - - - - - - diff --git a/account_financial_report/report/parser.py b/account_financial_report/report/parser.py deleted file mode 100644 index e92f9f10..00000000 --- a/account_financial_report/report/parser.py +++ /dev/null @@ -1,1238 +0,0 @@ -# -*- encoding: utf-8 -*- -########################################################################### -# Module Writen to OpenERP, Open Source Management Solution -# Copyright (C) OpenERP Venezuela (). -# All Rights Reserved -# Credits###################################################### -# Coded by: Humberto Arocha humberto@openerp.com.ve -# Angelica Barrios angelicaisabelb@gmail.com -# Jordi Esteve -# Javier Duran -# Planified by: Humberto Arocha -# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com -# Audited by: Humberto Arocha humberto@openerp.com.ve -############################################################################# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -############################################################################## - -import time -from openerp.report import report_sxw -from openerp.tools.translate import _ -from openerp.osv import osv - - -class account_balance(report_sxw.rml_parse): - - def __init__(self, cr, uid, name, context): - super(account_balance, self).__init__(cr, uid, name, context) - self.sum_debit = 0.00 - self.sum_credit = 0.00 - self.sum_balance = 0.00 - self.sum_debit_fy = 0.00 - self.sum_credit_fy = 0.00 - self.sum_balance_fy = 0.00 - self.date_lst = [] - self.date_lst_string = '' - self.localcontext.update({ - 'time': time, - 'lines': self.lines, - 'get_fiscalyear_text': self.get_fiscalyear_text, - 'get_periods_and_date_text': self.get_periods_and_date_text, - 'get_informe_text': self.get_informe_text, - 'get_month': self.get_month, - 'exchange_name': self.exchange_name, - 'get_vat_by_country': self.get_vat_by_country, - }) - self.context = context - - def get_vat_by_country(self, form): - """ - Return the vat of the partner by country - """ - rc_obj = self.pool.get('res.company') - country_code = rc_obj.browse(self.cr, self.uid, - form['company_id'][0]).partner_id.\ - country_id.code or '' - string_vat = rc_obj.browse(self.cr, self.uid, - form['company_id'][0]).partner_id.vat or '' - if string_vat: - if country_code == 'MX': - return '%s' % (string_vat[2:]) - elif country_code == 'VE': - return '- %s-%s-%s' % (string_vat[2:3], - string_vat[3:11], - string_vat[11:12]) - else: - return string_vat - else: - return _('\nVAT OF COMPANY NOT AVAILABLE') - - def get_fiscalyear_text(self, form): - """ - Returns the fiscal year text used on the report. - """ - fiscalyear_obj = self.pool['account.fiscalyear'] - fiscalyear = None - if form.get('fiscalyear'): - fiscalyear = fiscalyear_obj.browse( - self.cr, self.uid, form['fiscalyear']) - return fiscalyear.name or fiscalyear.code - else: - fiscalyear = fiscalyear_obj.browse( - self.cr, self.uid, fiscalyear_obj.find(self.cr, self.uid)) - return "%s*" % (fiscalyear.name or fiscalyear.code) - - def get_informe_text(self, form): - """ - Returns the header text used on the report. - """ - afr_id = form['afr_id'] and type(form['afr_id']) in ( - list, tuple) and form['afr_id'][0] or form['afr_id'] - if afr_id: - name = self.pool.get('afr').browse(self.cr, self.uid, afr_id).name - elif form['analytic_ledger'] and form['columns'] == 'four' \ - and form['inf_type'] == 'BS': - name = _('Analytic Ledger') - elif form['inf_type'] == 'BS': - name = _('Balance Sheet') - elif form['inf_type'] == 'IS': - name = _('Income Statement') - - return name - - def get_month(self, form): - ''' - return day, year and month - ''' - if form['filter'] in ['bydate', 'all']: - return _('From ') + self.formatLang(form['date_from'], date=True) \ - + _(' to ') + self.formatLang(form['date_to'], date=True) - elif form['filter'] in ['byperiod', 'all']: - aux = [] - period_obj = self.pool.get('account.period') - - for period in period_obj.browse(self.cr, self.uid, - form['periods']): - aux.append(period.date_start) - aux.append(period.date_stop) - sorted(aux) - return _('From ') + self.formatLang(aux[0], date=True) + \ - _(' to ') + self.formatLang(aux[-1], date=True) - - def get_periods_and_date_text(self, form): - """ - Returns the text with the periods/dates used on the report. - """ - period_obj = self.pool['account.period'] - fiscalyear_obj = self.pool['account.fiscalyear'] - fiscalyear_id = form[ - 'fiscalyear'] or fiscalyear_obj.find(self.cr, self.uid) - period_ids = period_obj.search(self.cr, self.uid, [( - 'fiscalyear_id', '=', fiscalyear_id), ('special', '=', False)]) - if form['filter'] in ['byperiod', 'all']: - period_ids = form['periods'] - periods_str = ', '.join([period.name or period.code - for period in period_obj.browse(self.cr, - self.uid, - period_ids)]) - - dates_str = None - if form['filter'] in ['bydate', 'all']: - dates_str = self.formatLang(form[ - 'date_from'], date=True) + ' - ' + \ - self.formatLang(form['date_to'], - date=True) + ' ' - return {'periods': periods_str, 'date': dates_str} - - def special_period(self, periods): - period_obj = self.pool.get('account.period') - period_brw = period_obj.browse(self.cr, self.uid, periods) - period_counter = [True for i in period_brw if not i.special] - if not period_counter: - return True - return False - - def exchange_name(self, form): - self.from_currency_id = self.\ - get_company_currency(form['company_id'] - and type(form['company_id']) in (list, tuple) - and form['company_id'][0] - or form['company_id']) - if not form['currency_id']: - self.to_currency_id = self.from_currency_id - else: - self.to_currency_id = form['currency_id'] \ - and type(form['currency_id']) in (list, tuple) \ - and form['currency_id'][0] or form['currency_id'] - return self.pool.get('res.currency').browse(self.cr, self.uid, - self.to_currency_id).name - - def exchange(self, from_amount): - if self.from_currency_id == self.to_currency_id: - return from_amount - curr_obj = self.pool.get('res.currency') - return curr_obj.compute(self.cr, self.uid, self.from_currency_id, - self.to_currency_id, from_amount) - - def get_company_currency(self, company_id): - rc_obj = self.pool.get('res.company') - return rc_obj.browse(self.cr, self.uid, company_id).currency_id.id - - def get_company_accounts(self, company_id, acc='credit'): - rc_obj = self.pool.get('res.company') - if acc == 'credit': - return [brw.id for brw in rc_obj.browse( - self.cr, self.uid, - company_id).credit_account_ids] - else: - return [brw.id for brw in rc_obj.browse( - self.cr, self.uid, - company_id).debit_account_ids] - - def _get_partner_balance(self, account, init_period, ctx=None): - res = [] - ctx = ctx or {} - if account['type'] in ('other', 'liquidity', 'receivable', 'payable'): - sql_query = """ - SELECT - CASE - WHEN aml.partner_id IS NOT NULL - THEN (SELECT name - FROM res_partner - WHERE aml.partner_id = id) - ELSE 'UNKNOWN' - END AS partner_name, - CASE - WHEN aml.partner_id IS NOT NULL - THEN aml.partner_id - ELSE 0 - END AS p_idx, - %s, - %s, - %s, - %s - FROM account_move_line AS aml - INNER JOIN account_account aa ON aa.id = aml.account_id - INNER JOIN account_move am ON am.id = aml.move_id - %s - GROUP BY p_idx, partner_name - """ - - WHERE_POSTED = '' - if ctx.get('state', 'posted') == 'posted': - WHERE_POSTED = "AND am.state = 'posted'" - - cur_periods = ', '.join([str(i) for i in ctx['periods']]) - init_periods = ', '.join([str(i) for i in init_period]) - - WHERE = """ - WHERE aml.period_id IN (%s) - AND aa.id = %s - AND aml.state <> 'draft' - """ % (init_periods, account['id']) - query_init = sql_query % ('SUM(aml.debit) AS init_dr', - 'SUM(aml.credit) AS init_cr', - '0.0 AS bal_dr', - '0.0 AS bal_cr', - WHERE + WHERE_POSTED) - - WHERE = """ - WHERE aml.period_id IN (%s) - AND aa.id = %s - AND aml.state <> 'draft' - """ % (cur_periods, account['id']) - - query_bal = sql_query % ('0.0 AS init_dr', - '0.0 AS init_cr', - 'SUM(aml.debit) AS bal_dr', - 'SUM(aml.credit) AS bal_cr', - WHERE + WHERE_POSTED) - - query = ''' - SELECT - partner_name, - p_idx, - SUM(init_dr)-SUM(init_cr) AS balanceinit, - SUM(bal_dr) AS debit, - SUM(bal_cr) AS credit, - SUM(init_dr) - SUM(init_cr) - + SUM(bal_dr) - SUM(bal_cr) AS balance - FROM ( - SELECT - * - FROM (%s) vinit - UNION ALL (%s) - ) v - GROUP BY p_idx, partner_name - ORDER BY partner_name - ''' % (query_init, query_bal) - - self.cr.execute(query) - res_dict = self.cr.dictfetchall() - unknown = False - for det in res_dict: - i, d, c, b = det['balanceinit'], det[ - 'debit'], det['credit'], det['balance'], - if not any([i, d, c, b]): - continue - data = { - 'partner_name': det['partner_name'], - 'balanceinit': i, - 'debit': d, - 'credit': c, - 'balance': b, - } - if not det['p_idx']: - unknown = data - continue - res.append(data) - unknown and res.append(unknown) - return res - - def _get_analytic_ledger(self, account, ctx={}): - res = [] - - if account['type'] in ('other', 'liquidity', 'receivable', 'payable'): - # ~ TODO: CUANDO EL PERIODO ESTE VACIO LLENARLO CON LOS PERIODOS - # DEL EJERCICIO - # ~ FISCAL, SIN LOS PERIODOS ESPECIALES - periods = ', '.join([str(i) for i in ctx['periods']]) - # ~ periods = str(tuple(ctx['periods'])) - where = """where aml.period_id in (%s) - and aa.id = %s - and aml.state <> 'draft'""" % (periods, account['id']) - if ctx.get('state', 'posted') == 'posted': - where += "AND am.state = 'posted'" - sql_detalle = """select aml.id as id, - aj.name as diario, - aa.name as descripcion, - (select name - from res_partner - where aml.partner_id = id) as partner, - aa.code as cuenta, - aml.name as name, - aml.ref as ref, - case when aml.debit is null - then 0.00 - else aml.debit - end as debit, - case when aml.credit is null - then 0.00 - else aml.credit - end as credit, - (select code - from account_analytic_account - where aml.analytic_account_id = id) - as analitica, - aml.date as date, - ap.name as periodo, - am.name as asiento - from account_move_line aml - inner join account_journal aj - on aj.id = aml.journal_id - inner join account_account aa - on aa.id = aml.account_id - inner join account_period ap - on ap.id = aml.period_id - inner join account_move am - on am.id = aml.move_id """ \ - + where + """ order by date, am.name""" - - self.cr.execute(sql_detalle) - resultat = self.cr.dictfetchall() - balance = account['balanceinit'] - for det in resultat: - balance += det['debit'] - det['credit'] - res.append({ - 'id': det['id'], - 'date': det['date'], - 'journal': det['diario'], - 'partner': det['partner'], - 'name': det['name'], - 'entry': det['asiento'], - 'ref': det['ref'], - 'debit': det['debit'], - 'credit': det['credit'], - 'analytic': det['analitica'], - 'period': det['periodo'], - 'balance': balance, - }) - return res - - def _get_journal_ledger(self, account, ctx={}): - res = [] - am_obj = self.pool.get('account.move') - print 'AM OBJ ', am_obj - if account['type'] in ('other', 'liquidity', 'receivable', 'payable'): - # ~ TODO: CUANDO EL PERIODO ESTE VACIO LLENARLO CON LOS PERIODOS - # DEL EJERCICIO - # ~ FISCAL, SIN LOS PERIODOS ESPECIALES - periods = ', '.join([str(i) for i in ctx['periods']]) - # ~ periods = str(tuple(ctx['periods'])) - where = """where aml.period_id in (%s) - and aa.id = %s - and aml.state <> 'draft'""" % (periods, account['id']) - if ctx.get('state', 'posted') == 'posted': - where += "AND am.state = 'posted'" - sql_detalle = """SELECT - DISTINCT am.id as am_id, - aj.name as diario, - am.name as name, - am.date as date, - ap.name as periodo - from account_move_line aml - inner join account_journal aj on aj.id = aml.journal_id - inner join account_account aa on aa.id = aml.account_id - inner join account_period ap on ap.id = aml.period_id - inner join account_move am on am.id = aml.move_id """ \ - + where + """ order by date, am.name""" - - self.cr.execute(sql_detalle) - resultat = self.cr.dictfetchall() - for det in resultat: - res.append({ - 'am_id': det['am_id'], - 'journal': det['diario'], - 'name': det['name'], - 'date': det['date'], - 'period': det['periodo'], - 'obj': am_obj.browse(self.cr, self.uid, det['am_id']) - }) - print 'ACCOUNT NAME', am_obj.browse(self.cr, self.uid, - det['am_id']).name - return res - - def lines(self, form, level=0): - """ - Returns all the data needed for the report lines - (account info plus debit/credit/balance in the selected period - and the full year) - """ - account_obj = self.pool.get('account.account') - period_obj = self.pool.get('account.period') - fiscalyear_obj = self.pool.get('account.fiscalyear') - - def _get_children_and_consol(cr, uid, ids, level, context={}, - change_sign=False): - aa_obj = self.pool.get('account.account') - ids2 = [] - for aa_brw in aa_obj.browse(cr, uid, ids, context): - if aa_brw.child_id and aa_brw.level < level \ - and aa_brw.type != 'consolidation': - if not change_sign: - ids2.append([aa_brw.id, True, False, aa_brw]) - ids2 += _get_children_and_consol( - cr, uid, [x.id for x in aa_brw.child_id], level, - context, change_sign=change_sign) - if change_sign: - ids2.append(aa_brw.id) - else: - ids2.append([aa_brw.id, False, True, aa_brw]) - else: - if change_sign: - ids2.append(aa_brw.id) - else: - ids2.append([aa_brw.id, True, True, aa_brw]) - return ids2 - - ####################################################################### - # CONTEXT FOR ENDIND BALANCE # - ####################################################################### - def _ctx_end(ctx): - ctx_end = ctx - ctx_end['filter'] = form.get('filter', 'all') - ctx_end['fiscalyear'] = fiscalyear.id - # ~ ctx_end['periods'] = period_obj.\ - # search(self.cr, self.uid, [('fiscalyear_id','=',fiscalyear.id), - # ('special','=',False)]) - - if ctx_end['filter'] not in ['bydate', 'none']: - special = self.special_period(form['periods']) - else: - special = False - - if form['filter'] in ['byperiod', 'all']: - if special: - ctx_end['periods'] = period_obj.search( - self.cr, self.uid, - [('id', 'in', form['periods'] or ctx_end.get('periods', - False))]) - else: - ctx_end['periods'] = period_obj.search( - self.cr, self.uid, - [('id', 'in', form['periods'] or ctx_end.get('periods', - False)), - ('special', '=', False)]) - - if form['filter'] in ['bydate', 'all', 'none']: - ctx_end['date_from'] = form['date_from'] - ctx_end['date_to'] = form['date_to'] - - return ctx_end.copy() - - def missing_period(ctx_init): - - ctx_init['fiscalyear'] = \ - fiscalyear_obj.search(self.cr, self.uid, - [('date_stop', '<', - fiscalyear.date_start)], - order='date_stop') \ - and fiscalyear_obj.search(self.cr, self.uid, - [('date_stop', '<', - fiscalyear.date_start)], - order='date_stop')[-1] or [] - ctx_init['periods'] = period_obj.search( - self.cr, self.uid, - [('fiscalyear_id', '=', ctx_init['fiscalyear']), - ('date_stop', '<', fiscalyear.date_start)]) - return ctx_init - ####################################################################### - # CONTEXT FOR INITIAL BALANCE # - ####################################################################### - - def _ctx_init(ctx): - ctx_init = self.context.copy() - ctx_init['filter'] = form.get('filter', 'all') - ctx_init['fiscalyear'] = fiscalyear.id - - if form['filter'] in ['byperiod', 'all']: - ctx_init['periods'] = form['periods'] - if not ctx_init['periods']: - ctx_init = missing_period(ctx_init.copy()) - date_start = min([period.date_start for period in period_obj. - browse(self.cr, self.uid, - ctx_init['periods'])]) - ctx_init['periods'] = period_obj.search( - self.cr, self.uid, [('fiscalyear_id', '=', fiscalyear.id), - ('date_stop', '<=', date_start)]) - elif form['filter'] in ['bydate']: - ctx_init['date_from'] = fiscalyear.date_start - ctx_init['date_to'] = form['date_from'] - ctx_init['periods'] = period_obj.search( - self.cr, self.uid, - [('fiscalyear_id', '=', fiscalyear.id), - ('date_stop', '<=', ctx_init['date_to'])]) - elif form['filter'] == 'none': - ctx_init['periods'] = period_obj.search( - self.cr, self.uid, [('fiscalyear_id', '=', fiscalyear.id), - ('special', '=', True)]) - date_start = min([period.date_start for period in period_obj. - browse(self.cr, self.uid, - ctx_init['periods'])]) - ctx_init['periods'] = period_obj.search( - self.cr, self.uid, [('fiscalyear_id', '=', fiscalyear.id), - ('date_start', '<=', date_start), - ('special', '=', True)]) - - return ctx_init.copy() - - def z(n): - return abs(n) < 0.005 and 0.0 or n - - self.context['state'] = form['target_move'] or 'posted' - - self.from_currency_id = self.\ - get_company_currency(form['company_id'] - and type(form['company_id']) in (list, tuple) - and form['company_id'][0] - or form['company_id']) - if not form['currency_id']: - self.to_currency_id = self.from_currency_id - else: - self.to_currency_id = form['currency_id'] \ - and type(form['currency_id']) in (list, tuple) \ - and form['currency_id'][0] \ - or form['currency_id'] - - if 'account_list' in form and form['account_list']: - account_ids = form['account_list'] - account_list = form['account_list'] - del form['account_list'] - - credit_account_ids = self.\ - get_company_accounts(form['company_id'] - and type(form['company_id']) in (list, tuple) - and form['company_id'][0] - or form['company_id'], 'credit') - - debit_account_ids = self.\ - get_company_accounts(form['company_id'] - and type(form['company_id']) in (list, tuple) - and form['company_id'][0] - or form['company_id'], 'debit') - - if form.get('fiscalyear'): - if type(form.get('fiscalyear')) in (list, tuple): - fiscalyear = form['fiscalyear'] and form['fiscalyear'][0] - elif type(form.get('fiscalyear')) in (int,): - fiscalyear = form['fiscalyear'] - fiscalyear = fiscalyear_obj.browse(self.cr, self.uid, fiscalyear) - - ################################################################ - # Get the accounts # - ################################################################ - all_account_ids = _get_children_and_consol( - self.cr, self.uid, account_ids, 100, self.context) - - account_ids = _get_children_and_consol( - self.cr, self.uid, account_ids, - form['display_account_level'] - and form['display_account_level'] - or 100, self.context) - - credit_account_ids = _get_children_and_consol( - self.cr, self.uid, credit_account_ids, 100, self.context, - change_sign=True) - - debit_account_ids = _get_children_and_consol( - self.cr, self.uid, debit_account_ids, 100, self.context, - change_sign=True) - - credit_account_ids = list(set( - credit_account_ids) - set(debit_account_ids)) - # - # Generate the report lines (checking each account) - # - - tot_check = False - - if not form['periods']: - form['periods'] = period_obj.search( - self.cr, self.uid, [('fiscalyear_id', '=', fiscalyear.id), - ('special', '=', False)], - order='date_start asc') - if not form['periods']: - raise osv.except_osv(_('UserError'), _( - 'The Selected Fiscal Year Does not have Regular Periods')) - - if form['columns'] == 'qtr': - period_ids = period_obj.search( - self.cr, self.uid, [('fiscalyear_id', '=', fiscalyear.id), - ('special', '=', False)], - order='date_start asc') - a = 0 - l = [] - p = [] - for x in period_ids: - a += 1 - if a < 3: - l.append(x) - else: - l.append(x) - p.append(l) - l = [] - a = 0 - tot_bal1 = 0.0 - tot_bal2 = 0.0 - tot_bal3 = 0.0 - tot_bal4 = 0.0 - tot_bal5 = 0.0 - elif form['columns'] == 'thirteen': - period_ids = period_obj.search( - self.cr, self.uid, [('fiscalyear_id', '=', fiscalyear.id), - ('special', '=', False)], - order='date_start asc') - tot_bal1 = 0.0 - tot_bal1 = 0.0 - tot_bal2 = 0.0 - tot_bal3 = 0.0 - tot_bal4 = 0.0 - tot_bal5 = 0.0 - tot_bal6 = 0.0 - tot_bal7 = 0.0 - tot_bal8 = 0.0 - tot_bal9 = 0.0 - tot_bal10 = 0.0 - tot_bal11 = 0.0 - tot_bal12 = 0.0 - tot_bal13 = 0.0 - else: - ctx_end = _ctx_end(self.context.copy()) - tot_bin = 0.0 - tot_deb = 0.0 - tot_crd = 0.0 - tot_ytd = 0.0 - tot_eje = 0.0 - - res = {} - result_acc = [] - tot = {} - - ############################################################### - # Calculations of credit, debit and balance, - # without repeating operations. - ############################################################### - - account_black_ids = account_obj.search( - self.cr, self.uid, ( - [('id', 'in', [i[0] for i in all_account_ids]), - ('type', 'not in', ('view', 'consolidation'))])) - - account_not_black_ids = account_obj.search( - self.cr, self.uid, ([('id', 'in', [i[0] for i in all_account_ids]), - ('type', '=', 'view')])) - - acc_cons_ids = account_obj.search( - self.cr, self.uid, ([('id', 'in', [i[0] for i in all_account_ids]), - ('type', 'in', ('consolidation',))])) - - account_consol_ids = acc_cons_ids and account_obj.\ - _get_children_and_consol(self.cr, self.uid, acc_cons_ids) or [] - - account_black_ids += account_obj.search(self.cr, self.uid, ( - [('id', 'in', account_consol_ids), - ('type', 'not in', - ('view', 'consolidation'))])) - - account_black_ids = list(set(account_black_ids)) - - c_account_not_black_ids = account_obj.search(self.cr, self.uid, ([ - ('id', 'in', account_consol_ids), - ('type', '=', 'view')])) - delete_cons = False - if c_account_not_black_ids: - delete_cons = set(account_not_black_ids) & set( - c_account_not_black_ids) and True or False - account_not_black_ids = list( - set(account_not_black_ids) - set(c_account_not_black_ids)) - - # This could be done quickly with a sql sentence - account_not_black = account_obj.browse( - self.cr, self.uid, account_not_black_ids) - account_not_black.sort(key=lambda x: x.level) - account_not_black.reverse() - account_not_black_ids = [i.id for i in account_not_black] - - c_account_not_black = account_obj.browse( - self.cr, self.uid, c_account_not_black_ids) - c_account_not_black.sort(key=lambda x: x.level) - c_account_not_black.reverse() - c_account_not_black_ids = [i.id for i in c_account_not_black] - - if delete_cons: - account_not_black_ids = c_account_not_black_ids + \ - account_not_black_ids - account_not_black = c_account_not_black + account_not_black - else: - acc_cons_brw = account_obj.browse( - self.cr, self.uid, acc_cons_ids) - acc_cons_brw.sort(key=lambda x: x.level) - acc_cons_brw.reverse() - acc_cons_ids = [i.id for i in acc_cons_brw] - - account_not_black_ids = c_account_not_black_ids + \ - acc_cons_ids + account_not_black_ids - account_not_black = c_account_not_black + \ - acc_cons_brw + account_not_black - - all_account_period = {} # All accounts per period - - # Iteration limit depending on the number of columns - if form['columns'] == 'thirteen': - limit = 13 - elif form['columns'] == 'qtr': - limit = 5 - else: - limit = 1 - - for p_act in range(limit): - if limit != 1: - if p_act == limit - 1: - form['periods'] = period_ids - else: - if form['columns'] == 'thirteen': - form['periods'] = [period_ids[p_act]] - elif form['columns'] == 'qtr': - form['periods'] = p[p_act] - - if form['inf_type'] == 'IS': - ctx_to_use = _ctx_end(self.context.copy()) - else: - ctx_i = _ctx_init(self.context.copy()) - ctx_to_use = _ctx_end(self.context.copy()) - - account_black = account_obj.browse( - self.cr, self.uid, account_black_ids, ctx_to_use) - - if form['inf_type'] == 'BS': - account_black_init = account_obj.browse( - self.cr, self.uid, account_black_ids, ctx_i) - - # ~ Black - dict_black = {} - for i in account_black: - d = i.debit - c = i.credit - dict_black[i.id] = { - 'obj': i, - 'debit': d, - 'credit': c, - 'balance': d - c - } - if form['inf_type'] == 'BS': - dict_black.get(i.id)['balanceinit'] = 0.0 - - # If the report is a balance sheet - # Balanceinit values are added to the dictionary - if form['inf_type'] == 'BS': - for i in account_black_init: - dict_black.get(i.id)['balanceinit'] = i.balance - - # ~ Not black - dict_not_black = {} - for i in account_not_black: - dict_not_black[i.id] = { - 'obj': i, 'debit': 0.0, 'credit': 0.0, 'balance': 0.0} - if form['inf_type'] == 'BS': - dict_not_black.get(i.id)['balanceinit'] = 0.0 - - all_account = dict_black.copy( - ) # It makes a copy because they modify - - for acc_id in account_not_black_ids: - acc_childs = dict_not_black.get(acc_id).get('obj').\ - type == 'view' \ - and dict_not_black.get(acc_id).get('obj').child_id \ - or dict_not_black.get(acc_id).get('obj').child_consol_ids - for child_id in acc_childs: - if child_id.type == 'consolidation' and delete_cons: - continue - dict_not_black.get(acc_id)['debit'] += all_account.get( - child_id.id).get('debit') - dict_not_black.get(acc_id)['credit'] += all_account.get( - child_id.id).get('credit') - dict_not_black.get(acc_id)['balance'] += all_account.get( - child_id.id).get('balance') - if form['inf_type'] == 'BS': - dict_not_black.get(acc_id)['balanceinit'] += \ - all_account.get(child_id.id).get('balanceinit') - all_account[acc_id] = dict_not_black[acc_id] - - if p_act == limit - 1: - all_account_period['all'] = all_account - else: - if form['columns'] == 'thirteen': - all_account_period[p_act] = all_account - elif form['columns'] == 'qtr': - all_account_period[p_act] = all_account - - ############################################################### - # End of the calculations of credit, debit and balance - # - ############################################################### - - for aa_id in account_ids: - id = aa_id[0] - if aa_id[3].type == 'consolidation' and delete_cons: - continue - # - # Check if we need to include this level - # - if not form['display_account_level'] \ - or aa_id[3].level <= form['display_account_level']: - res = { - 'id': id, - 'type': aa_id[3].type, - 'code': aa_id[3].code, - 'name': (aa_id[2] and not aa_id[1]) - and 'TOTAL %s' % (aa_id[3].name.upper()) - or aa_id[3].name, - 'parent_id': aa_id[3].parent_id and aa_id[3].parent_id.id, - 'level': aa_id[3].level, - 'label': aa_id[1], - 'total': aa_id[2], - 'change_sign': credit_account_ids - and (id in credit_account_ids and -1 or 1) or 1 - } - - if form['columns'] == 'qtr': - for pn in range(1, 5): - - if form['inf_type'] == 'IS': - d, c, b = map(z, [ - all_account_period.get(pn - 1). - get(id).get('debit', 0.0), - all_account_period.get(pn - 1). - get(id).get('credit', 0.0), - all_account_period.get(pn - 1). - get(id).get('balance', 0.0)]) - res.update({ - 'dbr%s' % pn: self.exchange(d), - 'cdr%s' % pn: self.exchange(c), - 'bal%s' % pn: self.exchange(b), - }) - else: - i, d, c = map(z, [ - all_account_period.get(pn - 1). - get(id).get('balanceinit', 0.0), - all_account_period.get(pn - 1). - get(id).get('debit', 0.0), - all_account_period.get(pn - 1). - get(id).get('credit', 0.0)]) - b = z(i + d - c) - res.update({ - 'dbr%s' % pn: self.exchange(d), - 'cdr%s' % pn: self.exchange(c), - 'bal%s' % pn: self.exchange(b), - }) - - if form['inf_type'] == 'IS': - d, c, b = map(z, [ - all_account_period.get('all').get(id). - get('debit', 0.0), - all_account_period.get('all').get(id). - get('credit', 0.0), - all_account_period.get('all').get(id). - get('balance')]) - res.update({ - 'dbr5': self.exchange(d), - 'cdr5': self.exchange(c), - 'bal5': self.exchange(b), - }) - else: - i, d, c = map(z, [ - all_account_period.get('all').get(id). - get('balanceinit', 0.0), - all_account_period.get('all').get(id). - get('debit', 0.0), - all_account_period.get('all').get(id). - get('credit', 0.0)]) - b = z(i + d - c) - res.update({ - 'dbr5': self.exchange(d), - 'cdr5': self.exchange(c), - 'bal5': self.exchange(b), - }) - - elif form['columns'] == 'thirteen': - pn = 1 - for p_num in range(12): - - if form['inf_type'] == 'IS': - d, c, b = map(z, [ - all_account_period.get(p_num). - get(id).get('debit', 0.0), - all_account_period.get(p_num). - get(id).get('credit', 0.0), - all_account_period.get(p_num). - get(id).get('balance', 0.0)]) - res.update({ - 'dbr%s' % pn: self.exchange(d), - 'cdr%s' % pn: self.exchange(c), - 'bal%s' % pn: self.exchange(b), - }) - else: - i, d, c = map(z, [ - all_account_period.get(p_num). - get(id).get('balanceinit', 0.0), - all_account_period.get(p_num). - get(id).get('debit', 0.0), - all_account_period.get(p_num). - get(id).get('credit', 0.0)]) - b = z(i + d - c) - res.update({ - 'dbr%s' % pn: self.exchange(d), - 'cdr%s' % pn: self.exchange(c), - 'bal%s' % pn: self.exchange(b), - }) - - pn += 1 - - if form['inf_type'] == 'IS': - d, c, b = map(z, [ - all_account_period.get('all').get(id). - get('debit', 0.0), - all_account_period.get('all').get(id). - get('credit', 0.0), - all_account_period.get('all').get(id). - get('balance', 0.0)]) - res.update({ - 'dbr13': self.exchange(d), - 'cdr13': self.exchange(c), - 'bal13': self.exchange(b), - }) - else: - i, d, c = map(z, [ - all_account_period.get('all').get(id). - get('balanceinit', 0.0), - all_account_period.get('all').get(id). - get('debit', 0.0), - all_account_period.get('all').get(id). - get('credit', 0.0)]) - b = z(i + d - c) - res.update({ - 'dbr13': self.exchange(d), - 'cdr13': self.exchange(c), - 'bal13': self.exchange(b), - }) - - else: - i, d, c = map(z, [ - all_account_period.get('all').get(id). - get('balanceinit', 0.0), - all_account_period.get('all').get(id). - get('debit', 0.0), - all_account_period.get('all').get(id). - get('credit', 0.0)]) - b = z(i + d - c) - res.update({ - 'balanceinit': self.exchange(i), - 'debit': self.exchange(d), - 'credit': self.exchange(c), - 'ytd': self.exchange(d - c), - }) - - if form['inf_type'] == 'IS' and form['columns'] == 'one': - res.update({ - 'balance': self.exchange(d - c), - }) - else: - res.update({ - 'balance': self.exchange(b), - }) - - # - # Check whether we must include this line in the report or not - # - to_include = False - - if form['columns'] in ('thirteen', 'qtr'): - to_test = [False] - if form['display_account'] == 'mov' and aa_id[3].parent_id: - # Include accounts with movements - for x in range(pn - 1): - to_test.append(res.get( - 'dbr%s' % x, 0.0) >= 0.005 and True or False) - to_test.append(res.get( - 'cdr%s' % x, 0.0) >= 0.005 and True or False) - if any(to_test): - to_include = True - - elif form['display_account'] == 'bal' and aa_id[3].\ - parent_id: - # Include accounts with balance - for x in range(pn - 1): - to_test.append(res.get( - 'bal%s' % x, 0.0) >= 0.005 and True or False) - if any(to_test): - to_include = True - - elif form['display_account'] == 'bal_mov' and aa_id[3].\ - parent_id: - # Include accounts with balance or movements - for x in range(pn - 1): - to_test.append(res.get( - 'bal%s' % x, 0.0) >= 0.005 and True or False) - to_test.append(res.get( - 'dbr%s' % x, 0.0) >= 0.005 and True or False) - to_test.append(res.get( - 'cdr%s' % x, 0.0) >= 0.005 and True or False) - if any(to_test): - to_include = True - else: - # Include all accounts - to_include = True - - else: - - if form['display_account'] == 'mov' and aa_id[3].parent_id: - # Include accounts with movements - if abs(d) >= 0.005 or abs(c) >= 0.005: - to_include = True - elif form['display_account'] == 'bal' and aa_id[3].\ - parent_id: - # Include accounts with balance - if abs(b) >= 0.005: - to_include = True - elif form['display_account'] == 'bal_mov' and aa_id[3].\ - parent_id: - # Include accounts with balance or movements - if abs(b) >= 0.005 \ - or abs(d) >= 0.005 \ - or abs(c) >= 0.005: - to_include = True - else: - # Include all accounts - to_include = True - - # ~ ANALYTIC LEDGER - if to_include and form['analytic_ledger'] \ - and form['columns'] == 'four' \ - and form['inf_type'] == 'BS' \ - and res['type'] in ('other', 'liquidity', - 'receivable', 'payable'): - res['mayor'] = self._get_analytic_ledger(res, ctx=ctx_end) - elif to_include and form['journal_ledger'] \ - and form['columns'] == 'four' \ - and form['inf_type'] == 'BS' \ - and res['type'] in ('other', 'liquidity', - 'receivable', 'payable'): - res['journal'] = self._get_journal_ledger(res, ctx=ctx_end) - elif to_include and form['partner_balance'] \ - and form['columns'] == 'four' \ - and form['inf_type'] == 'BS' \ - and res['type'] in ('other', 'liquidity', - 'receivable', 'payable'): - res['partner'] = self._get_partner_balance( - res, ctx_i['periods'], ctx=ctx_end) - else: - res['mayor'] = [] - - if to_include: - result_acc.append(res) - # - # Check whether we must sumarize this line in the report - # or not - # - if form['tot_check'] and (res['id'] in account_list) \ - and (res['id'] not in tot): - if form['columns'] == 'qtr': - tot_check = True - tot[res['id']] = True - tot_bal1 += res.get('bal1', 0.0) - tot_bal2 += res.get('bal2', 0.0) - tot_bal3 += res.get('bal3', 0.0) - tot_bal4 += res.get('bal4', 0.0) - tot_bal5 += res.get('bal5', 0.0) - - elif form['columns'] == 'thirteen': - tot_check = True - tot[res['id']] = True - tot_bal1 += res.get('bal1', 0.0) - tot_bal2 += res.get('bal2', 0.0) - tot_bal3 += res.get('bal3', 0.0) - tot_bal4 += res.get('bal4', 0.0) - tot_bal5 += res.get('bal5', 0.0) - tot_bal6 += res.get('bal6', 0.0) - tot_bal7 += res.get('bal7', 0.0) - tot_bal8 += res.get('bal8', 0.0) - tot_bal9 += res.get('bal9', 0.0) - tot_bal10 += res.get('bal10', 0.0) - tot_bal11 += res.get('bal11', 0.0) - tot_bal12 += res.get('bal12', 0.0) - tot_bal13 += res.get('bal13', 0.0) - else: - tot_check = True - tot[res['id']] = True - tot_bin += res['balanceinit'] - tot_deb += res['debit'] - tot_crd += res['credit'] - tot_ytd += res['ytd'] - tot_eje += res['balance'] - - if tot_check: - str_label = form['lab_str'] - res2 = { - 'type': 'view', - 'name': 'TOTAL %s' % (str_label), - 'label': False, - 'total': True, - } - if form['columns'] == 'qtr': - res2.update(dict( - bal1=z(tot_bal1), - bal2=z(tot_bal2), - bal3=z(tot_bal3), - bal4=z(tot_bal4), - bal5=z(tot_bal5),)) - elif form['columns'] == 'thirteen': - res2.update(dict( - bal1=z(tot_bal1), - bal2=z(tot_bal2), - bal3=z(tot_bal3), - bal4=z(tot_bal4), - bal5=z(tot_bal5), - bal6=z(tot_bal6), - bal7=z(tot_bal7), - bal8=z(tot_bal8), - bal9=z(tot_bal9), - bal10=z(tot_bal10), - bal11=z(tot_bal11), - bal12=z(tot_bal12), - bal13=z(tot_bal13),)) - - else: - res2.update({ - 'balanceinit': tot_bin, - 'debit': tot_deb, - 'credit': tot_crd, - 'ytd': tot_ytd, - 'balance': tot_eje, - }) - - result_acc.append(res2) - return result_acc - -report_sxw.report_sxw( - 'report.afr.1cols', - 'wizard.report', - 'account_financial_report/report/balance_full.rml', - parser=account_balance, - header=False) - -report_sxw.report_sxw( - 'report.afr.2cols', - 'wizard.report', - 'account_financial_report/report/balance_full_2_cols.rml', - parser=account_balance, - header=False) - -report_sxw.report_sxw( - 'report.afr.4cols', - 'wizard.report', - 'account_financial_report/report/balance_full_4_cols.rml', - parser=account_balance, - header=False) - -report_sxw.report_sxw( - 'report.afr.analytic.ledger', - 'wizard.report', - 'account_financial_report/report/balance_full_4_cols_analytic_ledger.rml', - parser=account_balance, - header=False) - -report_sxw.report_sxw( - 'report.afr.partner.balance', - 'wizard.report', - 'account_financial_report/report/balance_full_4_cols_partner_balance.rml', - parser=account_balance, - header=False) - -report_sxw.report_sxw( - 'report.afr.journal.ledger', - 'wizard.report', - 'account_financial_report/report/balance_full_4_cols_journal_ledger.rml', - parser=account_balance, - header=False) - -report_sxw.report_sxw( - 'report.afr.5cols', - 'wizard.report', - 'account_financial_report/report/balance_full_5_cols.rml', - parser=account_balance, - header=False) - -report_sxw.report_sxw( - 'report.afr.qtrcols', - 'wizard.report', - 'account_financial_report/report/balance_full_qtr_cols.rml', - parser=account_balance, - header=False) - -report_sxw.report_sxw( - 'report.afr.13cols', - 'wizard.report', - 'account_financial_report/report/balance_full_13_cols.rml', - parser=account_balance, - header=False) diff --git a/account_financial_report/security/ir.model.access.csv b/account_financial_report/security/ir.model.access.csv deleted file mode 100644 index aa94bc4a..00000000 --- a/account_financial_report/security/ir.model.access.csv +++ /dev/null @@ -1,10 +0,0 @@ -"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_afr_user","afr.user","model_afr","group_afreport",1,1,1,1 -"access_res_currency_user","res.currency.user","base.model_res_currency","group_afreport",1,1,1,1 -"access_res_company_user","res.company.user","base.model_res_company","group_afreport",1,1,1,1 -"access_account_account_user","account.account.user","account.model_account_account","group_afreport",1,1,1,1 -"access_account_fiscalyear_user","account.fiscalyear.user","account.model_account_fiscalyear","group_afreport",1,1,1,1 -"access_account_period_user","account.period.user","account.model_account_period","group_afreport",1,1,1,1 -"access_account_invoice_user","account.invoice.user","account.model_account_invoice","group_afreport",1,1,1,1 -"access_account_account","account.account","account.model_account_account","account.group_account_user",1,1,1,1 -"access_account_invoice_report","account.invoice.report","account.model_account_invoice_report","account.group_account_manager",1,1,1,1 diff --git a/account_financial_report/security/security.xml b/account_financial_report/security/security.xml deleted file mode 100644 index 9d64e298..00000000 --- a/account_financial_report/security/security.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Account Financial Report - - - - See AFR Reports of My Own Company - - - - - - - [('company_id','=',user.company_id.id)] - - - - diff --git a/account_financial_report/view/account_financial_report_view.xml b/account_financial_report/view/account_financial_report_view.xml deleted file mode 100644 index 99b13214..00000000 --- a/account_financial_report/view/account_financial_report_view.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - Account Financial Report (Template) - afr - form - -
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - Account Financial Report (Template) - afr - tree - - - - - - - - - - - - - - - - - Account Financial Report - afr - ir.actions.act_window - form - tree,form - Create your own Customized Account Financial Reports, in here, you will be able to create Templates for generating Two types of Reports: Balance Sheets and Income Statements, incluiding Analytic Ledgers. Besides, you can select within a set of choices to get better detailed report, be it that you ask it by one or several periods, by months (12 Months + YTD), or by quarters (4QRT's + YTD). Even you can get your reports in currencies other than the one set on your company. - - - - -
-
diff --git a/account_financial_report/view/company_view.xml b/account_financial_report/view/company_view.xml deleted file mode 100644 index bf8a5744..00000000 --- a/account_financial_report/view/company_view.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - res.company.form.inherit - - res.company - form - - - - - - - - - - - - - - - - - - - - - diff --git a/account_financial_report/view/report.xml b/account_financial_report/view/report.xml deleted file mode 100644 index 119d0b93..00000000 --- a/account_financial_report/view/report.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/account_financial_report/view/wizard.xml b/account_financial_report/view/wizard.xml deleted file mode 100644 index 31754940..00000000 --- a/account_financial_report/view/wizard.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - Account Financial Report (Template) - wizard.report - form - -
-
-
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - Account Financial Report (Multireports) - wizard.report - form - form - - inline - - - - - - -
-
diff --git a/account_financial_report/wizard/__init__.py b/account_financial_report/wizard/__init__.py deleted file mode 100644 index 8ee75c16..00000000 --- a/account_financial_report/wizard/__init__.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- encoding: utf-8 -*- -########################################################################### -# Module Writen to OpenERP, Open Source Management Solution -# Copyright (C) OpenERP Venezuela (). -# All Rights Reserved -# Credits###################################################### -# Coded by: Humberto Arocha humberto@openerp.com.ve -# Angelica Barrios angelicaisabelb@gmail.com -# Jordi Esteve -# Planified by: Humberto Arocha -# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com -# Audited by: Humberto Arocha humberto@openerp.com.ve -############################################################################# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -############################################################################## - -from . import wizard diff --git a/account_financial_report/wizard/wizard.py b/account_financial_report/wizard/wizard.py deleted file mode 100644 index 717300a9..00000000 --- a/account_financial_report/wizard/wizard.py +++ /dev/null @@ -1,373 +0,0 @@ -# -*- encoding: utf-8 -*- -########################################################################### -# Module Writen to OpenERP, Open Source Management Solution -# Copyright (C) OpenERP Venezuela (). -# All Rights Reserved -# Credits###################################################### -# Coded by: Humberto Arocha humberto@openerp.com.ve -# Angelica Barrios angelicaisabelb@gmail.com -# Jordi Esteve -# Javier Duran -# Planified by: Humberto Arocha -# Finance by: LUBCAN COL S.A.S http://www.lubcancol.com -# Audited by: Humberto Arocha humberto@openerp.com.ve -############################################################################# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -############################################################################## - -from openerp.osv import osv, fields -import time -from openerp.tools.translate import _ - - -class wizard_report(osv.osv_memory): - _name = "wizard.report" - - _columns = { - 'afr_id': fields.many2one( - 'afr', 'Custom Report', - help='If you have already set a Custom Report, Select it Here.'), - 'company_id': fields.many2one('res.company', 'Company', required=True), - 'currency_id': fields.many2one( - 'res.currency', 'Currency', - help="Currency at which this report will be expressed. If not \ - selected will be used the one set in the company"), - 'inf_type': fields.selection([('BS', 'Balance Sheet'), - ('IS', 'Income Statement')], - 'Type', - required=True), - 'columns': fields.selection( - [('one', 'End. Balance'), - ('two', 'Debit | Credit'), - ('four', 'Initial | Debit | Credit | YTD'), - ('five', 'Initial | Debit | Credit | Period | YTD'), - ('qtr', "4 QTR's | YTD"), ('thirteen', '12 Months | YTD')], - 'Columns', required=True), - 'display_account': fields.selection( - [('all', 'All Accounts'), - ('bal', 'With Balance'), - ('mov', 'With movements'), - ('bal_mov', 'With Balance / Movements')], - 'Display accounts'), - 'display_account_level': fields.integer( - 'Up to level', - help='Display accounts up to this level (0 to show all)'), - - 'account_list': fields.many2many('account.account', - 'rel_wizard_account', - 'account_list', - 'account_id', - 'Root accounts', - required=True), - - 'fiscalyear': fields.many2one('account.fiscalyear', 'Fiscal year', - help='Fiscal Year for this report', - required=True), - 'periods': fields.many2many( - 'account.period', 'rel_wizard_period', - 'wizard_id', 'period_id', 'Periods', - help='All periods in the fiscal year if empty'), - - 'analytic_ledger': fields.boolean( - 'Analytic Ledger', - help="Allows to Generate an Analytic Ledger for accounts with \ - moves. Available when Balance Sheet and 'Initial | Debit | Credit \ - | YTD' are selected"), - 'journal_ledger': fields.boolean( - 'Journal Ledger', - help="Allows to Generate an Journal Ledger for accounts with \ - moves. Available when Balance Sheet and 'Initial | Debit | Credit \ - | YTD' are selected"), - 'partner_balance': fields.boolean( - 'Partner Balance', - help="Allows to Generate a Partner Balance for accounts with \ - moves. Available when Balance Sheet and 'Initial | Debit | Credit \ - | YTD' are selected"), - 'tot_check': fields.boolean('Summarize?', - help='Checking will add a new line at the \ - end of the Report which will Summarize \ - Columns in Report'), - 'lab_str': fields.char('Description', - help='Description for the Summary', size=128), - - 'target_move': fields.selection( - [('posted', 'All Posted Entries'), - ('all', 'All Entries'), - ], 'Entries to Include', - required=True, - help='Print All Accounting Entries or just Posted Accounting \ - Entries'), - # ~ Deprecated fields - 'filter': fields.selection([('bydate', 'By Date'), - ('byperiod', 'By Period'), - ('all', 'By Date and Period'), - ('none', 'No Filter')], - 'Date/Period Filter'), - 'date_to': fields.date('End date'), - 'date_from': fields.date('Start date'), - } - - _defaults = { - 'date_from': lambda *a: time.strftime('%Y-%m-%d'), - 'date_to': lambda *a: time.strftime('%Y-%m-%d'), - 'filter': lambda *a: 'byperiod', - 'display_account_level': lambda *a: 0, - 'inf_type': lambda *a: 'BS', - 'company_id': lambda self, cr, uid, c: self.pool['res.company']. - _company_default_get(cr, uid, 'account.invoice', context=c), - 'fiscalyear': lambda self, cr, uid, c: self. - pool['account.fiscalyear'].find(cr, uid), - 'display_account': lambda *a: 'bal_mov', - 'columns': lambda *a: 'five', - 'target_move': 'posted', - } - - def onchange_inf_type(self, cr, uid, ids, inf_type, context=None): - if context is None: - context = {} - res = {'value': {}} - - if inf_type != 'BS': - res['value'].update({'analytic_ledger': False}) - - return res - - def onchange_columns(self, cr, uid, ids, columns, fiscalyear, periods, - context=None): - if context is None: - context = {} - res = {'value': {}} - - p_obj = self.pool.get("account.period") - all_periods = p_obj.search(cr, uid, - [('fiscalyear_id', '=', fiscalyear), - ('special', '=', False)], context=context) - s = set(periods[0][2]) - t = set(all_periods) - go = periods[0][2] and s.issubset(t) or False - - if columns != 'four': - res['value'].update({'analytic_ledger': False}) - - if columns in ('qtr', 'thirteen'): - res['value'].update({'periods': all_periods}) - else: - if go: - res['value'].update({'periods': periods}) - else: - res['value'].update({'periods': []}) - return res - - def onchange_analytic_ledger(self, cr, uid, ids, company_id, - analytic_ledger, context=None): - if context is None: - context = {} - context['company_id'] = company_id - res = {'value': {}} - cur_id = self.pool.get('res.company').browse( - cr, uid, company_id, context=context).currency_id.id - res['value'].update({'currency_id': cur_id}) - return res - - def onchange_company_id(self, cr, uid, ids, company_id, context=None): - if context is None: - context = {} - context['company_id'] = company_id - res = {'value': {}} - - if not company_id: - return res - - cur_id = self.pool.get('res.company').browse( - cr, uid, company_id, context=context).currency_id.id - fy_id = self.pool.get('account.fiscalyear').find( - cr, uid, context=context) - res['value'].update({'fiscalyear': fy_id}) - res['value'].update({'currency_id': cur_id}) - res['value'].update({'account_list': []}) - res['value'].update({'periods': []}) - res['value'].update({'afr_id': None}) - return res - - def onchange_afr_id(self, cr, uid, ids, afr_id, context=None): - if context is None: - context = {} - res = {'value': {}} - if not afr_id: - return res - afr_brw = self.pool.get('afr').browse(cr, uid, afr_id, context=context) - res['value'].update({ - 'currency_id': afr_brw.currency_id - and afr_brw.currency_id.id - or afr_brw.company_id.currency_id.id}) - res['value'].update({'inf_type': afr_brw.inf_type or 'BS'}) - res['value'].update({'columns': afr_brw.columns or 'five'}) - res['value'].update({ - 'display_account': afr_brw.display_account - or 'bal_mov'}) - res['value'].update({ - 'display_account_level': afr_brw. - display_account_level or 0}) - res['value'].update({ - 'fiscalyear': afr_brw.fiscalyear_id - and afr_brw.fiscalyear_id.id}) - res['value'].update({'account_list': [ - acc.id for acc in afr_brw.account_ids]}) - res['value'].update({'periods': [p.id for p in afr_brw.period_ids]}) - res['value'].update({ - 'analytic_ledger': - afr_brw.analytic_ledger or False}) - res['value'].update({'tot_check': afr_brw.tot_check or False}) - res['value'].update({'lab_str': afr_brw.lab_str or _( - 'Write a Description for your Summary Total')}) - return res - - def _get_defaults(self, cr, uid, data, context=None): - if context is None: - context = {} - user = self.pool['res.users'].browse(cr, uid, uid, context=context) - if user.company_id: - company_id = user.company_id.id - else: - company_id = self.pool['res.company'].search( - cr, uid, [('parent_id', '=', False)])[0] - data['form']['company_id'] = company_id - fiscalyear_obj = self.pool['account.fiscalyear'] - data['form']['fiscalyear'] = fiscalyear_obj.find(cr, uid) - data['form']['context'] = context - return data['form'] - - def _check_state(self, cr, uid, data, context=None): - if context is None: - context = {} - if data['form']['filter'] == 'bydate': - self._check_date(cr, uid, data, context) - return data['form'] - - def _check_date(self, cr, uid, data, context=None): - if context is None: - context = {} - - if data['form']['date_from'] > data['form']['date_to']: - raise osv.except_osv(_('Error !'), ( - 'La fecha final debe ser mayor a la inicial')) - - sql = """SELECT f.id, f.date_start, f.date_stop - FROM account_fiscalyear f - WHERE '%s' = f.id """ % (data['form']['fiscalyear']) - cr.execute(sql) - res = cr.dictfetchall() - - if res: - if (data['form']['date_to'] > res[0]['date_stop'] - or data['form']['date_from'] < res[0]['date_start']): - raise osv.except_osv(_('UserError'), - 'Las fechas deben estar entre %s y %s' - % (res[0]['date_start'], - res[0]['date_stop'])) - else: - return 'report' - else: - raise osv.except_osv(_('UserError'), 'No existe periodo fiscal') - - def period_span(self, cr, uid, ids, fy_id, context=None): - if context is None: - context = {} - ap_obj = self.pool.get('account.period') - fy_id = fy_id and type(fy_id) in (list, tuple) and fy_id[0] or fy_id - if not ids: - # ~ No hay periodos - return ap_obj.search(cr, uid, [('fiscalyear_id', '=', fy_id), - ('special', '=', False)], - order='date_start asc') - - ap_brws = ap_obj.browse(cr, uid, ids, context=context) - date_start = min([period.date_start for period in ap_brws]) - date_stop = max([period.date_stop for period in ap_brws]) - - return ap_obj.search(cr, uid, [('fiscalyear_id', '=', fy_id), - ('special', '=', False), - ('date_start', '>=', date_start), - ('date_stop', '<=', date_stop)], - order='date_start asc') - - def print_report(self, cr, uid, ids, data, context=None): - if context is None: - context = {} - - data = {} - data['ids'] = context.get('active_ids', []) - data['model'] = context.get('active_model', 'ir.ui.menu') - data['form'] = self.read(cr, uid, ids[0]) - - if data['form']['filter'] == 'byperiod': - del data['form']['date_from'] - del data['form']['date_to'] - - data['form']['periods'] = self.period_span( - cr, uid, - data['form']['periods'], - data['form']['fiscalyear']) - - elif data['form']['filter'] == 'bydate': - self._check_date(cr, uid, data) - del data['form']['periods'] - elif data['form']['filter'] == 'none': - del data['form']['date_from'] - del data['form']['date_to'] - del data['form']['periods'] - else: - self._check_date(cr, uid, data) - lis2 = str(data['form']['periods']).replace( - "[", "(").replace("]", ")") - sqlmm = """select min(p.date_start) as inicio, - max(p.date_stop) as fin - from account_period p - where p.id in %s""" % lis2 - cr.execute(sqlmm) - minmax = cr.dictfetchall() - if minmax: - if (data['form']['date_to'] < minmax[0]['inicio']) \ - or (data['form']['date_from'] > minmax[0]['fin']): - raise osv.except_osv(_('Error !'), _( - 'La interseccion entre el periodo y fecha es vacio')) - - if data['form']['columns'] == 'one': - name = 'afr.1cols' - if data['form']['columns'] == 'two': - name = 'afr.2cols' - if data['form']['columns'] == 'four': - if data['form']['analytic_ledger'] \ - and data['form']['inf_type'] == 'BS': - name = 'afr.analytic.ledger' - elif data['form']['journal_ledger'] \ - and data['form']['inf_type'] == 'BS': - name = 'afr.journal.ledger' - elif data['form']['partner_balance'] \ - and data['form']['inf_type'] == 'BS': - name = 'afr.partner.balance' - else: - name = 'afr.4cols' - if data['form']['columns'] == 'five': - name = 'afr.5cols' - if data['form']['columns'] == 'qtr': - name = 'afr.qtrcols' - if data['form']['columns'] == 'thirteen': - name = 'afr.13cols' - - return {'type': 'ir.actions.report.xml', - 'report_name': name, - 'datas': data} - -wizard_report()