openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #00123
lp:~joaquing-pedrosa/account-financial-tools/account-financial-tools into lp:account-financial-tools
Joaquin Gutierrez has proposed merging lp:~joaquing-pedrosa/account-financial-tools/account-financial-tools into lp:account-financial-tools.
Requested reviews:
Account Core Editors (account-core-editors)
For more details, see:
https://code.launchpad.net/~joaquing-pedrosa/account-financial-tools/account-financial-tools/+merge/187204
[IMP] account_renumber: General Refactoring:
- Changed types to orm.Model, orm.TransientModel and orm.AbstractModel.
- Change renumbering assistants in renumbering, show results and cancellation to version 7.
- Remove legacy code calls.
- Contributions have been written in the standard format of the community.
--
https://code.launchpad.net/~joaquing-pedrosa/account-financial-tools/account-financial-tools/+merge/187204
Your team OpenERP Community Reviewer is subscribed to branch lp:account-financial-tools.
=== added directory 'account_renumber'
=== added file 'account_renumber/__init__.py'
--- account_renumber/__init__.py 1970-01-01 00:00:00 +0000
+++ account_renumber/__init__.py 2013-09-24 11:05:53 +0000
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP - Account renumber wizard
+# Copyright (C) 2009 Pexego Sistemas Informáticos. All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published
+# by the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+"""
+Account renumber wizard
+"""
+__author__ = "Borja López Soilán (Pexego) - borjals@xxxxxxxxx"
+
+import wizard
=== added file 'account_renumber/__openerp__.py'
--- account_renumber/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_renumber/__openerp__.py 2013-09-24 11:05:53 +0000
@@ -0,0 +1,59 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP - Account renumber wizard
+# Copyright (C) 2009 Pexego Sistemas Informáticos. All Rights Reserved
+# Copyright (c) 2013 Servicios Tecnológicos Avanzados (http://www.serviciosbaeza.com)
+# Pedro Manuel Baeza <pedro.baeza@xxxxxxxxxxxxxxxxxx>
+# Copyright (c) 2013 Joaquin Gutierrez (http://www.gutierrezweb.es)
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published
+# by the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+{
+ 'name': "Account renumber wizard",
+ 'version': "1.0",
+ 'author': "Pexego",
+ 'website': "http://www.pexego.es",
+ 'category': "Enterprise Specific Modules",
+ 'contributors' : ['Pedro M. Baeza', 'Joaquín Gutierrez'],
+ 'description': """
+This module adds a wizard to renumber account moves by date only for admin users.
+=================================================================================
+
+The wizard, that will be added to the "End of Year Treatments",
+let's you select one or more journals and fiscal periods,
+set a starting number; and then renumber all the posted moves
+from those journals and periods sorted by date.
+
+It will recreate the sequence number of each account move using their journal sequence so:
+ - Sequences per journal are supported.
+ - Sequences with prefixes and sufixes based on the move date are also supported.
+ """,
+ "license" : "AGPL-3",
+ "depends" : [
+ 'base',
+ 'account',
+ ],
+ "init_xml" : [
+ ],
+ "demo_xml" : [],
+ "data": [
+ 'wizard/wizard_renumber_view.xml',
+ ],
+ "active": False,
+ "installable": True
+}
=== added directory 'account_renumber/i18n'
=== added file 'account_renumber/i18n/account_renumber.pot'
--- account_renumber/i18n/account_renumber.pot 1970-01-01 00:00:00 +0000
+++ account_renumber/i18n/account_renumber.pot 2013-09-24 11:05:53 +0000
@@ -0,0 +1,147 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * account_renumber
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0-20130902-231053\n"
+"Report-Msgid-Bugs-To: support@xxxxxxxxxxx\n"
+"POT-Creation-Date: 2013-09-24 10:12+0000\n"
+"PO-Revision-Date: 2013-09-24 10:12+0000\n"
+"Last-Translator: Joaquin Gutierrez<joaquin@xxxxxxxxxxxxxxx>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: \n"
+
+#. module: account_renumber
+#: selection:wizard.renumber,state:0
+msgid "Renumbering"
+msgstr "Renumbering"
+
+#. module: account_renumber
+#: help:wizard.renumber,period_ids:0
+msgid "Fiscal periods to renumber"
+msgstr "Fiscal periods to renumber"
+
+#. module: account_renumber
+#: field:wizard.renumber,number_next:0
+msgid "First Number"
+msgstr "First Number"
+
+#. module: account_renumber
+#: field:wizard.renumber,state:0
+msgid "unknown"
+msgstr "unknown"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Show Results"
+msgstr "Show Results"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Renumber"
+msgstr "Renumber"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "You may now review them using the show results button."
+msgstr "You may now review them using the show results button."
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+#: field:wizard.renumber,journal_ids:0
+msgid "Journals"
+msgstr "Journals"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:178
+#, python-format
+msgid "Wizard successfully executed "
+msgstr "Wizard successfully executed "
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Journals and periods to consider"
+msgstr "Journals and periods to consider"
+
+#. module: account_renumber
+#: selection:wizard.renumber,state:0
+msgid "Initial"
+msgstr "Initial"
+
+#. module: account_renumber
+#: help:wizard.renumber,journal_ids:0
+msgid "Journals to renumber"
+msgstr "Journals to renumber"
+
+#. module: account_renumber
+#: model:ir.actions.act_window,name:account_renumber.action_account_renumber
+#: model:ir.ui.menu,name:account_renumber.menu_account_renumber
+#: view:wizard.renumber:0
+msgid "Renumber Account Moves"
+msgstr "Renumber Account Moves"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Posted moves from those journals will be sorted by date and then assigned sequential numbers using their journal sequence."
+msgstr "Posted moves from those journals will be sorted by date and then assigned sequential numbers using their journal sequence."
+
+#. module: account_renumber
+#: model:ir.model,name:account_renumber.model_wizard_renumber
+msgid "wizard.renumber"
+msgstr "wizard.renumber"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "The moves of the selected journals and periods have been renumbered."
+msgstr "The moves of the selected journals and periods have been renumbered."
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "General Data"
+msgstr "General Data"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:209
+#, python-format
+msgid "Renumbered account moves"
+msgstr "Renumbered account moves"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:129
+#: code:addons/account_renumber/wizard/wizard_renumber.py:137
+#, python-format
+msgid "No Data Available"
+msgstr "No Data Available"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:129
+#: code:addons/account_renumber/wizard/wizard_renumber.py:137
+#, python-format
+msgid "No records found for your selection!"
+msgstr "No records found for your selection!"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+#: field:wizard.renumber,period_ids:0
+msgid "Periods"
+msgstr "Periods"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Cancel"
+msgstr "Cancel"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "This wizard will help you renumber one or more journals."
+msgstr "This wizard will help you renumber one or more journals."
+
+#. module: account_renumber
+#: help:wizard.renumber,number_next:0
+msgid "Journal sequences will start counting on this number"
+msgstr "Journal sequences will start counting on this number"
+
=== added file 'account_renumber/i18n/bg.po'
--- account_renumber/i18n/bg.po 1970-01-01 00:00:00 +0000
+++ account_renumber/i18n/bg.po 2013-09-24 11:05:53 +0000
@@ -0,0 +1,154 @@
+# Bulgarian translation for openobject-addons
+# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011
+# This file is distributed under the same license as the openobject-addons package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: openobject-addons\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2009-11-22 11:17+0000\n"
+"PO-Revision-Date: 2011-03-30 07:49+0000\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: Bulgarian <bg@xxxxxx>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2012-11-28 04:55+0000\n"
+"X-Generator: Launchpad (build 16309)\n"
+
+#. module: account_renumber
+#: model:ir.module.module,shortdesc:account_renumber.module_meta_information
+msgid "Account renumber wizard"
+msgstr ""
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,period_ids:0
+msgid "Fiscal periods to renumber"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,number_next:0
+msgid "First Number"
+msgstr ""
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Renumbered journals"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,renumber:0
+msgid "Renumber"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "You may now review them using the show results button."
+msgstr ""
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,journal_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Journals"
+msgstr "Журнали"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Journals and periods to consider"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Sequence options"
+msgstr ""
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,journal_ids:0
+msgid "Journals to renumber"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+#: model:ir.actions.wizard,name:account_renumber.wiz_account_renumber
+#: model:ir.ui.menu,name:account_renumber.menu_account_renumber
+msgid "Renumber Account Moves"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid ""
+"Posted moves from those journals will be sorted by date and then assigned "
+"sequential numbers using their journal sequence."
+msgstr ""
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,end:0
+msgid "Cancel"
+msgstr "Отмяна"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,show_results:0
+msgid "Show results"
+msgstr "Показване на резултати"
+
+#. module: account_renumber
+#: model:ir.module.module,description:account_renumber.module_meta_information
+msgid ""
+"\n"
+"This module adds a wizard to renumber account moves by date.\n"
+"\n"
+"The wizard, that will be added to the \"End of Year Treatments\",\n"
+"let's you select one or more journals and fiscal periods,\n"
+"set a starting number; and then renumber all the posted moves\n"
+"from those journals and periods sorted by date.\n"
+"\n"
+"It will recreate the sequence number of each account move using their "
+"journal sequence so:\n"
+" - Sequences per journal are supported.\n"
+" - Sequences with prefixes and sufixes based on the move date are also "
+"supported.\n"
+" "
+msgstr ""
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:0
+#, python-format
+msgid "Renumbered account moves"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "The moves of the selected journals and periods have been renumbered."
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "Renumber Account Moves - Done"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,period_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Periods"
+msgstr "Периоди"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Renumbered fiscal periods"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,end:0
+msgid "Close"
+msgstr "Затваряне"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "This wizard will help you renumber one or more journals."
+msgstr "Този помощник помага за пренумериране на един или повече журнали"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,number_next:0
+msgid "Journal sequences will start counting on this number"
+msgstr ""
=== added file 'account_renumber/i18n/ca.po'
--- account_renumber/i18n/ca.po 1970-01-01 00:00:00 +0000
+++ account_renumber/i18n/ca.po 2013-09-24 11:05:53 +0000
@@ -0,0 +1,175 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * account_renumber
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 5.0.6\n"
+"Report-Msgid-Bugs-To: support@xxxxxxxxxxx\n"
+"POT-Creation-Date: 2009-11-22 11:17+0000\n"
+"PO-Revision-Date: 2010-04-28 15:00+0000\n"
+"Last-Translator: Jordi Esteve - http://www.zikzakmedia.com "
+"<jesteve@xxxxxxxxxxxxxxx>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2012-11-28 04:55+0000\n"
+"X-Generator: Launchpad (build 16309)\n"
+"X-Poedit-Language: Catalan\n"
+
+#. module: account_renumber
+#: model:ir.module.module,shortdesc:account_renumber.module_meta_information
+msgid "Account renumber wizard"
+msgstr "Assistent de renumeració d'assentaments"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,period_ids:0
+msgid "Fiscal periods to renumber"
+msgstr "Períodes fiscals a renumerar"
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,number_next:0
+msgid "First Number"
+msgstr "Primer número"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Renumbered journals"
+msgstr "Diaris renumerats"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,renumber:0
+msgid "Renumber"
+msgstr "Renumera"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "You may now review them using the show results button."
+msgstr "Ara podeu revisar-los utilitzant el botó Mostra resultats."
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,journal_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Journals"
+msgstr "Diaris"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Journals and periods to consider"
+msgstr "Diaris i períodes a considerar"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Sequence options"
+msgstr "Opcions de seqüència"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,journal_ids:0
+msgid "Journals to renumber"
+msgstr "Diaris a renumerar"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+#: model:ir.actions.wizard,name:account_renumber.wiz_account_renumber
+#: model:ir.ui.menu,name:account_renumber.menu_account_renumber
+msgid "Renumber Account Moves"
+msgstr "Renumera assentaments comptables"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid ""
+"Posted moves from those journals will be sorted by date and then assigned "
+"sequential numbers using their journal sequence."
+msgstr ""
+"Els assentaments fixats d'aquests diaris seran ordenats per data i després "
+"els seran assignats números seqüencials utilitzant la seqüència del seu "
+"diari."
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,end:0
+msgid "Cancel"
+msgstr "Cancel·la"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,show_results:0
+msgid "Show results"
+msgstr "Mostra resultats"
+
+#. module: account_renumber
+#: model:ir.module.module,description:account_renumber.module_meta_information
+msgid ""
+"\n"
+"This module adds a wizard to renumber account moves by date.\n"
+"\n"
+"The wizard, that will be added to the \"End of Year Treatments\",\n"
+"let's you select one or more journals and fiscal periods,\n"
+"set a starting number; and then renumber all the posted moves\n"
+"from those journals and periods sorted by date.\n"
+"\n"
+"It will recreate the sequence number of each account move using their "
+"journal sequence so:\n"
+" - Sequences per journal are supported.\n"
+" - Sequences with prefixes and sufixes based on the move date are also "
+"supported.\n"
+" "
+msgstr ""
+"\n"
+"Aquest mòdul afegeix un assistent per a renumerar assentaments comptables "
+"per data.\n"
+"\n"
+"L'assistent, que serà afegit als \"Tractaments de fi d'any\",\n"
+"us permet seleccionar un o més diaris i períodes fiscals,\n"
+"establir un número inicial; i llavors renumerar tots els assentaments "
+"fixats\n"
+"d'aquests diaris i períodes ordenats per data.\n"
+"\n"
+"Recrearà el número de seqüència de cada assentament comptable utilitzant la "
+"seqüència de vostre diari, així que:\n"
+" - Es suporten seqüències per diari.\n"
+" - També es suporten seqüències amb prefixos i sufixos basats en la data "
+"de l'assentament.\n"
+" "
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:0
+#, python-format
+msgid "Renumbered account moves"
+msgstr "Assentaments comptables renumerats"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "The moves of the selected journals and periods have been renumbered."
+msgstr ""
+"Els assentaments dels diaris i períodes seleccionats han estat renumerats."
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "Renumber Account Moves - Done"
+msgstr "Renumera assentaments comptables - Fet"
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,period_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Periods"
+msgstr "Períodes"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Renumbered fiscal periods"
+msgstr "Períodes fiscals renumerats"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,end:0
+msgid "Close"
+msgstr "Tanca"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "This wizard will help you renumber one or more journals."
+msgstr "Aquest assistent us ajudarà a renumerar un o més diaris."
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,number_next:0
+msgid "Journal sequences will start counting on this number"
+msgstr "Les seqüències dels diaris començaran a comptar en aquest número"
=== added file 'account_renumber/i18n/ca_ES.po'
--- account_renumber/i18n/ca_ES.po 1970-01-01 00:00:00 +0000
+++ account_renumber/i18n/ca_ES.po 2013-09-24 11:05:53 +0000
@@ -0,0 +1,161 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * account_renumber
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 5.0.6\n"
+"Report-Msgid-Bugs-To: support@xxxxxxxxxxx\n"
+"POT-Creation-Date: 2009-11-22 11:18:57+0000\n"
+"PO-Revision-Date: 2010-02-22 10:26+0100\n"
+"Last-Translator: Jordi Esteve (Zikzakmedia) <jesteve@xxxxxxxxxxxxxxx>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: Catalan\n"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:0
+#, python-format
+msgid "Renumbered account moves"
+msgstr "Assentaments comptables renumerats"
+
+#. module: account_renumber
+#: model:ir.module.module,shortdesc:account_renumber.module_meta_information
+msgid "Account renumber wizard"
+msgstr "Assistent de renumeració d'assentaments"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,period_ids:0
+msgid "Fiscal periods to renumber"
+msgstr "Períodes fiscals a renumerar"
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,number_next:0
+msgid "First Number"
+msgstr "Primer número"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Renumbered journals"
+msgstr "Diaris renumerats"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,renumber:0
+msgid "Renumber"
+msgstr "Renumera"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "You may now review them using the show results button."
+msgstr "Ara podeu revisar-los utilitzant el botó Mostra resultats."
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,journal_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Journals"
+msgstr "Diaris"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Journals and periods to consider"
+msgstr "Diaris i períodes a considerar"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Sequence options"
+msgstr "Opcions de seqüència"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,journal_ids:0
+msgid "Journals to renumber"
+msgstr "Diaris a renumerar"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+#: model:ir.actions.wizard,name:account_renumber.wiz_account_renumber
+#: model:ir.ui.menu,name:account_renumber.menu_account_renumber
+msgid "Renumber Account Moves"
+msgstr "Renumera assentaments comptables"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Posted moves from those journals will be sorted by date and then assigned sequential numbers using their journal sequence."
+msgstr "Els assentaments fixats d'aquests diaris seran ordenats per data i després els seran assignats números seqüencials utilitzant la seqüència del seu diari."
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,end:0
+msgid "Cancel"
+msgstr "Cancel·la"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,show_results:0
+msgid "Show results"
+msgstr "Mostra resultats"
+
+#. module: account_renumber
+#: model:ir.module.module,description:account_renumber.module_meta_information
+msgid ""
+"\n"
+"This module adds a wizard to renumber account moves by date.\n"
+"\n"
+"The wizard, that will be added to the \"End of Year Treatments\",\n"
+"let's you select one or more journals and fiscal periods,\n"
+"set a starting number; and then renumber all the posted moves\n"
+"from those journals and periods sorted by date.\n"
+"\n"
+"It will recreate the sequence number of each account move using their journal sequence so:\n"
+" - Sequences per journal are supported.\n"
+" - Sequences with prefixes and sufixes based on the move date are also supported.\n"
+" "
+msgstr ""
+"\n"
+"Aquest mòdul afegeix un assistent per a renumerar assentaments comptables per data.\n"
+"\n"
+"L'assistent, que serà afegit als \"Tractaments de fi d'any\",\n"
+"us permet seleccionar un o més diaris i períodes fiscals,\n"
+"establir un número inicial; i llavors renumerar tots els assentaments fixats\n"
+"d'aquests diaris i períodes ordenats per data.\n"
+"\n"
+"Recrearà el número de seqüència de cada assentament comptable utilitzant la seqüència de vostre diari, així que:\n"
+" - Es suporten seqüències per diari.\n"
+" - També es suporten seqüències amb prefixos i sufixos basats en la data de l'assentament.\n"
+" "
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "The moves of the selected journals and periods have been renumbered."
+msgstr "Els assentaments dels diaris i períodes seleccionats han estat renumerats."
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "Renumber Account Moves - Done"
+msgstr "Renumera assentaments comptables - Fet"
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,period_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Periods"
+msgstr "Períodes"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Renumbered fiscal periods"
+msgstr "Períodes fiscals renumerats"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,end:0
+msgid "Close"
+msgstr "Tanca"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "This wizard will help you renumber one or more journals."
+msgstr "Aquest assistent us ajudarà a renumerar un o més diaris."
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,number_next:0
+msgid "Journal sequences will start counting on this number"
+msgstr "Les seqüències dels diaris començaran a comptar en aquest número"
+
=== added file 'account_renumber/i18n/es.po'
--- account_renumber/i18n/es.po 1970-01-01 00:00:00 +0000
+++ account_renumber/i18n/es.po 2013-09-24 11:05:53 +0000
@@ -0,0 +1,202 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * account_renumber
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 5.0.6\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-09-24 10:12+0000\n"
+"PO-Revision-Date: 2013-09-24 12:19+0100\n"
+"Last-Translator: Joaquin Gutierrez <joaquing.pedrosa@xxxxxxxxx>\n"
+"Language-Team: \n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2012-11-28 04:55+0000\n"
+"X-Generator: Launchpad (build 16309)\n"
+
+#. module: account_renumber
+#: selection:wizard.renumber,state:0
+#, fuzzy
+msgid "Renumbering"
+msgstr "Renumerar"
+
+#. module: account_renumber
+#: help:wizard.renumber,period_ids:0
+msgid "Fiscal periods to renumber"
+msgstr "Periodos fiscales a renumerar"
+
+#. module: account_renumber
+#: field:wizard.renumber,number_next:0
+msgid "First Number"
+msgstr "Primer número"
+
+#. module: account_renumber
+#: field:wizard.renumber,state:0
+msgid "unknown"
+msgstr "unknown"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+#, fuzzy
+msgid "Show Results"
+msgstr "Mostrar resultados"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Renumber"
+msgstr "Renumerar"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "You may now review them using the show results button."
+msgstr "Ahora puede revisarlos usando el botón mostrar resultados."
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+#: field:wizard.renumber,journal_ids:0
+msgid "Journals"
+msgstr "Diarios"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:178
+#, python-format
+msgid "Wizard successfully executed "
+msgstr "Wizard successfully executed "
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Journals and periods to consider"
+msgstr "Diarios y periodos a considerar"
+
+#. module: account_renumber
+#: selection:wizard.renumber,state:0
+msgid "Initial"
+msgstr "Initial"
+
+#. module: account_renumber
+#: help:wizard.renumber,journal_ids:0
+msgid "Journals to renumber"
+msgstr "Diarios a renumerar"
+
+#. module: account_renumber
+#: model:ir.actions.act_window,name:account_renumber.action_account_renumber
+#: model:ir.ui.menu,name:account_renumber.menu_account_renumber
+#: view:wizard.renumber:0
+msgid "Renumber Account Moves"
+msgstr "Renumerar asientos contables"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Posted moves from those journals will be sorted by date and then assigned sequential numbers using their journal sequence."
+msgstr "Asientos fijados de esos diarios serán ordenados por fecha y después les serán asignados números secuenciales usando la secuencia de su diario."
+
+#. module: account_renumber
+#: model:ir.model,name:account_renumber.model_wizard_renumber
+#, fuzzy
+msgid "wizard.renumber"
+msgstr "Renumerar"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "The moves of the selected journals and periods have been renumbered."
+msgstr "Los asientos de los diarios y periodos seleccionados han sido renumerados."
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "General Data"
+msgstr "Datos Generales"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:209
+#, python-format
+msgid "Renumbered account moves"
+msgstr "Asientos contables renumerados"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:129
+#: code:addons/account_renumber/wizard/wizard_renumber.py:137
+#, python-format
+msgid "No Data Available"
+msgstr "No Data Available"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:129
+#: code:addons/account_renumber/wizard/wizard_renumber.py:137
+#, python-format
+msgid "No records found for your selection!"
+msgstr "No records found for your selection!"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+#: field:wizard.renumber,period_ids:0
+msgid "Periods"
+msgstr "Periodos"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Cancel"
+msgstr "Cancelar"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "This wizard will help you renumber one or more journals."
+msgstr "Este asistente le ayudará a renumerar uno o más diarios."
+
+#. module: account_renumber
+#: help:wizard.renumber,number_next:0
+msgid "Journal sequences will start counting on this number"
+msgstr "Las secuencias de los diarios empezarán a contar en este número"
+
+#~ msgid "Account renumber wizard"
+#~ msgstr "Asistente de renumeración de asientos"
+
+#~ msgid "Renumbered journals"
+#~ msgstr "Diarios renumerados"
+
+#~ msgid "Sequence options"
+#~ msgstr "Opciones de secuencia"
+
+#~ msgid ""
+#~ "\n"
+#~ "This module adds a wizard to renumber account moves by date.\n"
+#~ "\n"
+#~ "The wizard, that will be added to the \"End of Year Treatments\",\n"
+#~ "let's you select one or more journals and fiscal periods,\n"
+#~ "set a starting number; and then renumber all the posted moves\n"
+#~ "from those journals and periods sorted by date.\n"
+#~ "\n"
+#~ "It will recreate the sequence number of each account move using their "
+#~ "journal sequence so:\n"
+#~ " - Sequences per journal are supported.\n"
+#~ " - Sequences with prefixes and sufixes based on the move date are also "
+#~ "supported.\n"
+#~ " "
+#~ msgstr ""
+#~ "\n"
+#~ "Este módulo añade un asistente para renumerar asientos contables por "
+#~ "fecha.\n"
+#~ "\n"
+#~ "El asistente, que será añadido a los \"Tratamientos de fin de año\",\n"
+#~ "le permite seleccionar uno o más diarios y periodos fiscales,\n"
+#~ "establecer un número inicial; y entonces renumerar todos los asientos "
+#~ "fijados\n"
+#~ "de dichos diarios y periodos ordenados por fecha.\n"
+#~ "\n"
+#~ "Recreará el número de secuencia de cada asiento contable usando la "
+#~ "secuencia de su diario, así que:\n"
+#~ " - Se soportan secuencias por diario.\n"
+#~ " - También se soportan secuencias con prefijos y sufijos basados en la "
+#~ "fecha del asiento.\n"
+#~ " "
+
+#~ msgid "Renumber Account Moves - Done"
+#~ msgstr "Reenumerar asientos contables - Hecho"
+
+#~ msgid "Renumbered fiscal periods"
+#~ msgstr "Periodos fiscales renumerados"
+
+#~ msgid "Close"
+#~ msgstr "Cerrar"
=== added file 'account_renumber/i18n/es_ES.po'
--- account_renumber/i18n/es_ES.po 1970-01-01 00:00:00 +0000
+++ account_renumber/i18n/es_ES.po 2013-09-24 11:05:53 +0000
@@ -0,0 +1,201 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * account_renumber
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 5.0.6\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-09-24 10:12+0000\n"
+"PO-Revision-Date: 2013-09-24 12:21+0100\n"
+"Last-Translator: Joaquin Gutierrez <joaquing.pedrosa@xxxxxxxxx>\n"
+"Language-Team: \n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: \n"
+
+#. module: account_renumber
+#: selection:wizard.renumber,state:0
+#, fuzzy
+msgid "Renumbering"
+msgstr "Renumerar"
+
+#. module: account_renumber
+#: help:wizard.renumber,period_ids:0
+msgid "Fiscal periods to renumber"
+msgstr "Periodos fiscales a renumerar"
+
+#. module: account_renumber
+#: field:wizard.renumber,number_next:0
+msgid "First Number"
+msgstr "Primer número"
+
+#. module: account_renumber
+#: field:wizard.renumber,state:0
+msgid "unknown"
+msgstr "unknown"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+#, fuzzy
+msgid "Show Results"
+msgstr "Mostrar resultados"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Renumber"
+msgstr "Renumerar"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "You may now review them using the show results button."
+msgstr "Ahora puede revisarlos usando el botón mostrar resultados."
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+#: field:wizard.renumber,journal_ids:0
+msgid "Journals"
+msgstr "Diarios"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:178
+#, python-format
+msgid "Wizard successfully executed "
+msgstr "Wizard successfully executed "
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Journals and periods to consider"
+msgstr "Diarios y periodos a considerar"
+
+#. module: account_renumber
+#: selection:wizard.renumber,state:0
+msgid "Initial"
+msgstr "Initial"
+
+#. module: account_renumber
+#: help:wizard.renumber,journal_ids:0
+msgid "Journals to renumber"
+msgstr "Diarios a renumerar"
+
+#. module: account_renumber
+#: model:ir.actions.act_window,name:account_renumber.action_account_renumber
+#: model:ir.ui.menu,name:account_renumber.menu_account_renumber
+#: view:wizard.renumber:0
+msgid "Renumber Account Moves"
+msgstr "Renumerar asientos contables"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Posted moves from those journals will be sorted by date and then assigned sequential numbers using their journal sequence."
+msgstr "Asientos fijados de esos diarios serán ordenados por fecha y después les serán asignados números secuenciales usando la secuencia de su diario."
+
+#. module: account_renumber
+#: model:ir.model,name:account_renumber.model_wizard_renumber
+#, fuzzy
+msgid "wizard.renumber"
+msgstr "Renumerar"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "The moves of the selected journals and periods have been renumbered."
+msgstr "Los asientos de los diarios y periodos seleccionados han sido renumerados."
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "General Data"
+msgstr "Datos Generales"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:209
+#, python-format
+msgid "Renumbered account moves"
+msgstr "Asientos contables renumerados"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:129
+#: code:addons/account_renumber/wizard/wizard_renumber.py:137
+#, python-format
+msgid "No Data Available"
+msgstr "No Data Available"
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:129
+#: code:addons/account_renumber/wizard/wizard_renumber.py:137
+#, python-format
+msgid "No records found for your selection!"
+msgstr "No records found for your selection!"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+#: field:wizard.renumber,period_ids:0
+msgid "Periods"
+msgstr "Periodos"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "Cancel"
+msgstr "Cancelar"
+
+#. module: account_renumber
+#: view:wizard.renumber:0
+msgid "This wizard will help you renumber one or more journals."
+msgstr "Este asistente le ayudará a renumerar uno o más diarios."
+
+#. module: account_renumber
+#: help:wizard.renumber,number_next:0
+msgid "Journal sequences will start counting on this number"
+msgstr "Las secuencias de los diarios empezarán a contar en este número"
+
+#~ msgid "Account renumber wizard"
+#~ msgstr "Asistente de renumeración de asientos"
+
+#~ msgid "Renumbered journals"
+#~ msgstr "Diarios renumerados"
+
+#~ msgid "Sequence options"
+#~ msgstr "Opciones de secuencia"
+
+#~ msgid ""
+#~ "\n"
+#~ "This module adds a wizard to renumber account moves by date.\n"
+#~ "\n"
+#~ "The wizard, that will be added to the \"End of Year Treatments\",\n"
+#~ "let's you select one or more journals and fiscal periods,\n"
+#~ "set a starting number; and then renumber all the posted moves\n"
+#~ "from those journals and periods sorted by date.\n"
+#~ "\n"
+#~ "It will recreate the sequence number of each account move using their "
+#~ "journal sequence so:\n"
+#~ " - Sequences per journal are supported.\n"
+#~ " - Sequences with prefixes and sufixes based on the move date are also "
+#~ "supported.\n"
+#~ " "
+#~ msgstr ""
+#~ "\n"
+#~ "Este módulo añade un asistente para renumerar asientos contables por "
+#~ "fecha.\n"
+#~ "\n"
+#~ "El asistente, que será añadido a los \"Tratamientos de fin de año\",\n"
+#~ "le permite seleccionar uno o más diarios y periodos fiscales,\n"
+#~ "establecer un número inicial; y entonces renumerar todos los asientos "
+#~ "fijados\n"
+#~ "de dichos diarios y periodos ordenados por fecha.\n"
+#~ "\n"
+#~ "Recreará el número de secuencia de cada asiento contable usando la "
+#~ "secuencia de su diario, así que:\n"
+#~ " - Se soportan secuencias por diario.\n"
+#~ " - También se soportan secuencias con prefijos y sufijos basados en la "
+#~ "fecha del asiento.\n"
+#~ " "
+
+#~ msgid "Renumber Account Moves - Done"
+#~ msgstr "Reenumerar asientos contables - Hecho"
+
+#~ msgid "Renumbered fiscal periods"
+#~ msgstr "Periodos fiscales renumerados"
+
+#~ msgid "Close"
+#~ msgstr "Cerrar"
=== added file 'account_renumber/i18n/gl.po'
--- account_renumber/i18n/gl.po 1970-01-01 00:00:00 +0000
+++ account_renumber/i18n/gl.po 2013-09-24 11:05:53 +0000
@@ -0,0 +1,170 @@
+# Galician translation for openobject-addons
+# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
+# This file is distributed under the same license as the openobject-addons package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: openobject-addons\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2009-11-22 11:17+0000\n"
+"PO-Revision-Date: 2010-04-28 15:00+0000\n"
+"Last-Translator: Borja López Soilán (Pexego) <borjals@xxxxxxxxx>\n"
+"Language-Team: Galician <gl@xxxxxx>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2012-11-28 04:55+0000\n"
+"X-Generator: Launchpad (build 16309)\n"
+
+#. module: account_renumber
+#: model:ir.module.module,shortdesc:account_renumber.module_meta_information
+msgid "Account renumber wizard"
+msgstr "Asistente de renumeración de asentos"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,period_ids:0
+msgid "Fiscal periods to renumber"
+msgstr "Periodos fiscais a renumerar"
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,number_next:0
+msgid "First Number"
+msgstr "Primeiro número"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Renumbered journals"
+msgstr "Xornais renumerados"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,renumber:0
+msgid "Renumber"
+msgstr "Renumerar"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "You may now review them using the show results button."
+msgstr "Agora pode revisalos usando o botón mostrar resultados."
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,journal_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Journals"
+msgstr "Xornais"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Journals and periods to consider"
+msgstr "Xornais e períodos a considerar"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Sequence options"
+msgstr "Opcións da secuencia"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,journal_ids:0
+msgid "Journals to renumber"
+msgstr "Xornais a renumerar"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+#: model:ir.actions.wizard,name:account_renumber.wiz_account_renumber
+#: model:ir.ui.menu,name:account_renumber.menu_account_renumber
+msgid "Renumber Account Moves"
+msgstr "Renumerar asentos contables"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid ""
+"Posted moves from those journals will be sorted by date and then assigned "
+"sequential numbers using their journal sequence."
+msgstr ""
+"Asentos fixos deses xornais serán ordenados por data e logo seranlles "
+"asignados números secuenciais usando a secuencia do seu xornal."
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,end:0
+msgid "Cancel"
+msgstr "Cancelar"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,show_results:0
+msgid "Show results"
+msgstr "Mostrar resultados"
+
+#. module: account_renumber
+#: model:ir.module.module,description:account_renumber.module_meta_information
+msgid ""
+"\n"
+"This module adds a wizard to renumber account moves by date.\n"
+"\n"
+"The wizard, that will be added to the \"End of Year Treatments\",\n"
+"let's you select one or more journals and fiscal periods,\n"
+"set a starting number; and then renumber all the posted moves\n"
+"from those journals and periods sorted by date.\n"
+"\n"
+"It will recreate the sequence number of each account move using their "
+"journal sequence so:\n"
+" - Sequences per journal are supported.\n"
+" - Sequences with prefixes and sufixes based on the move date are also "
+"supported.\n"
+" "
+msgstr ""
+"\n"
+"Este módulo engade un asistente para renumerar asentos contables por data.\n"
+"\n"
+"O asistente, que será engadido os \"Tratamentos de fin de ano\",\n"
+"permítelle seleccionar un ou máis xornais e períodos fiscais,\n"
+"establecer un número inicial; e entón renumerar tódolos asentos fixos\n"
+"de ditos xornais e períodos ordenados por data.\n"
+"\n"
+"Recreará o número de secuencia de cada asento contable usando a secuencia do "
+"seu xornal, así que:\n"
+" - Sopórtanse secuencias por diario.\n"
+" - Sopórtanse tamén secuencias con prefixos e sufixos baseados na data do "
+"asento.\n"
+" "
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:0
+#, python-format
+msgid "Renumbered account moves"
+msgstr "Asentos contables renumerados"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "The moves of the selected journals and periods have been renumbered."
+msgstr "Os asentos dos xornais e períodos seleccionados foron renumerados."
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "Renumber Account Moves - Done"
+msgstr "Renumerar asentos contables - Feito"
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,period_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Periods"
+msgstr "Períodos"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Renumbered fiscal periods"
+msgstr "Períodos fiscais renumerados"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,end:0
+msgid "Close"
+msgstr "Cerrar"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "This wizard will help you renumber one or more journals."
+msgstr "O asistente axudaralle a renumerar un ou máis diarios."
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,number_next:0
+msgid "Journal sequences will start counting on this number"
+msgstr "As secuencias dos diarios empezarán a contar neste número"
=== added file 'account_renumber/i18n/pt.po'
--- account_renumber/i18n/pt.po 1970-01-01 00:00:00 +0000
+++ account_renumber/i18n/pt.po 2013-09-24 11:05:53 +0000
@@ -0,0 +1,172 @@
+# Portuguese translation for openobject-addons
+# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
+# This file is distributed under the same license as the openobject-addons package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: openobject-addons\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2009-11-22 11:17+0000\n"
+"PO-Revision-Date: 2010-12-09 19:32+0000\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: Portuguese <pt@xxxxxx>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2012-11-28 04:55+0000\n"
+"X-Generator: Launchpad (build 16309)\n"
+
+#. module: account_renumber
+#: model:ir.module.module,shortdesc:account_renumber.module_meta_information
+msgid "Account renumber wizard"
+msgstr "Assistente renumear Conta"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,period_ids:0
+msgid "Fiscal periods to renumber"
+msgstr "Periodo Fiscal para renumear"
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,number_next:0
+msgid "First Number"
+msgstr "Primeiro NṔrimeiro Número"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Renumbered journals"
+msgstr "Diários Renumerados"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,renumber:0
+msgid "Renumber"
+msgstr "Renumear"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "You may now review them using the show results button."
+msgstr "Pode agora reve-los utiizando o botão apresentar resultados."
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,journal_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Journals"
+msgstr "Diários"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Journals and periods to consider"
+msgstr "Diários e periodos para considerar"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Sequence options"
+msgstr "Sequência de opções"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,journal_ids:0
+msgid "Journals to renumber"
+msgstr "Diários para renumear"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+#: model:ir.actions.wizard,name:account_renumber.wiz_account_renumber
+#: model:ir.ui.menu,name:account_renumber.menu_account_renumber
+msgid "Renumber Account Moves"
+msgstr "Renumear Movimentos de Conta"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid ""
+"Posted moves from those journals will be sorted by date and then assigned "
+"sequential numbers using their journal sequence."
+msgstr ""
+"Movimentos publicados a partir daqueles diários, serão classificados por "
+"data e então assinados por números sequênciais utilizando a sequência dos "
+"seus diários."
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,end:0
+msgid "Cancel"
+msgstr "Cancelar"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,show_results:0
+msgid "Show results"
+msgstr "Apresentar resultados"
+
+#. module: account_renumber
+#: model:ir.module.module,description:account_renumber.module_meta_information
+msgid ""
+"\n"
+"This module adds a wizard to renumber account moves by date.\n"
+"\n"
+"The wizard, that will be added to the \"End of Year Treatments\",\n"
+"let's you select one or more journals and fiscal periods,\n"
+"set a starting number; and then renumber all the posted moves\n"
+"from those journals and periods sorted by date.\n"
+"\n"
+"It will recreate the sequence number of each account move using their "
+"journal sequence so:\n"
+" - Sequences per journal are supported.\n"
+" - Sequences with prefixes and sufixes based on the move date are also "
+"supported.\n"
+" "
+msgstr ""
+"\n"
+"Este módulo adiciona um assistente para renumear os movimentos da conta por "
+"data\n"
+"\n"
+"O assistente que vai ser adicionado para o \"Fim dos Tratamentos do ano\",\n"
+"deixa-lhe selecionar um ou mais diários e periodos fiscais\n"
+"define um número inicia; e então renumea todos os movimentos publicados\n"
+"a partir desses diários e periodos cassificados por data.\n"
+"\n"
+"Ele vai recrear o número de sequência de cada movimento de conta ao utilizar "
+"a sequência de diário então:\n"
+" - Sequências por diário são suportados.\n"
+" - Sequências com prefixos e sufixos baseados no movimento da data também "
+"são suportados.\n"
+" "
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:0
+#, python-format
+msgid "Renumbered account moves"
+msgstr "Movimentos de Conta renumerados"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "The moves of the selected journals and periods have been renumbered."
+msgstr "Os movimentos dos diários e periodos selecionados foram renumerados."
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "Renumber Account Moves - Done"
+msgstr "Renumear Movimentos de Conta - Concluído"
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,period_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Periods"
+msgstr "Periodos"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Renumbered fiscal periods"
+msgstr "Periodos Fiscais renumerados"
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,end:0
+msgid "Close"
+msgstr "Fechar"
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "This wizard will help you renumber one or more journals."
+msgstr "Este assistente vai ajudar-lhe a renumerar um ou mais diários."
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,number_next:0
+msgid "Journal sequences will start counting on this number"
+msgstr "A sequência do diário vai começar a contar neste número"
=== added file 'account_renumber/i18n/sv.po'
--- account_renumber/i18n/sv.po 1970-01-01 00:00:00 +0000
+++ account_renumber/i18n/sv.po 2013-09-24 11:05:53 +0000
@@ -0,0 +1,153 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * account_renumber
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 5.0.14\n"
+"Report-Msgid-Bugs-To: support@xxxxxxxxxxx\n"
+"POT-Creation-Date: 2009-11-22 11:17+0000\n"
+"PO-Revision-Date: 2010-11-23 01:32+0000\n"
+"Last-Translator: Olivier Dony (OpenERP) <Unknown>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2012-11-28 04:55+0000\n"
+"X-Generator: Launchpad (build 16309)\n"
+
+#. module: account_renumber
+#: model:ir.module.module,shortdesc:account_renumber.module_meta_information
+msgid "Account renumber wizard"
+msgstr "Account renumber wizard"
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,period_ids:0
+msgid "Fiscal periods to renumber"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,number_next:0
+msgid "First Number"
+msgstr ""
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Renumbered journals"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,renumber:0
+msgid "Renumber"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "You may now review them using the show results button."
+msgstr ""
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,journal_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,journal_ids:0
+msgid "Journals"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Journals and periods to consider"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "Sequence options"
+msgstr ""
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,journal_ids:0
+msgid "Journals to renumber"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+#: model:ir.actions.wizard,name:account_renumber.wiz_account_renumber
+#: model:ir.ui.menu,name:account_renumber.menu_account_renumber
+msgid "Renumber Account Moves"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid ""
+"Posted moves from those journals will be sorted by date and then assigned "
+"sequential numbers using their journal sequence."
+msgstr ""
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,init,end:0
+msgid "Cancel"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,show_results:0
+msgid "Show results"
+msgstr ""
+
+#. module: account_renumber
+#: model:ir.module.module,description:account_renumber.module_meta_information
+msgid ""
+"\n"
+"This module adds a wizard to renumber account moves by date.\n"
+"\n"
+"The wizard, that will be added to the \"End of Year Treatments\",\n"
+"let's you select one or more journals and fiscal periods,\n"
+"set a starting number; and then renumber all the posted moves\n"
+"from those journals and periods sorted by date.\n"
+"\n"
+"It will recreate the sequence number of each account move using their "
+"journal sequence so:\n"
+" - Sequences per journal are supported.\n"
+" - Sequences with prefixes and sufixes based on the move date are also "
+"supported.\n"
+" "
+msgstr ""
+
+#. module: account_renumber
+#: code:addons/account_renumber/wizard/wizard_renumber.py:0
+#, python-format
+msgid "Renumbered account moves"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "The moves of the selected journals and periods have been renumbered."
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,renumber:0
+msgid "Renumber Account Moves - Done"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_field:account_renumber.renumber_wizard,init,period_ids:0
+#: wizard_field:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Periods"
+msgstr ""
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,renumber,period_ids:0
+msgid "Renumbered fiscal periods"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_button:account_renumber.renumber_wizard,renumber,end:0
+msgid "Close"
+msgstr ""
+
+#. module: account_renumber
+#: wizard_view:account_renumber.renumber_wizard,init:0
+msgid "This wizard will help you renumber one or more journals."
+msgstr ""
+
+#. module: account_renumber
+#: help:account_renumber.renumber_wizard,init,number_next:0
+msgid "Journal sequences will start counting on this number"
+msgstr ""
=== added directory 'account_renumber/test'
=== added file 'account_renumber/test/create_moves.py'
--- account_renumber/test/create_moves.py 1970-01-01 00:00:00 +0000
+++ account_renumber/test/create_moves.py 2013-09-24 11:05:53 +0000
@@ -0,0 +1,113 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP - Account renumber wizard
+# Copyright (C) 2009 Pexego Sistemas Informáticos. All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published
+# by the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+"""
+Script that creates large amounts of account moves on different days,
+that can be used later for testing the renumber wizard.
+"""
+__author__ = "Borja López Soilán (Pexego)"
+
+import sys
+import re
+import xmlrpclib
+import socket
+import logging
+logger = logging.getLogger("create_lots_of_account_moves")
+
+
+def create_lots_of_account_moves(dbname, user, passwd, howmany):
+ """
+ Small OpenERP function that will create lots of account moves
+ on the selected database, that can later be used for
+ testing the renumber wizard.
+ Note: The database must have demo data, and a fiscal year 2009 created.
+ """
+ url_template = "http://%s:%s/xmlrpc/%s"
+ server = "localhost"
+ port = 8069
+ user_id = 0
+
+ login_facade = xmlrpclib.ServerProxy(
+ url_template % (server, port, 'common'))
+ user_id = login_facade.login(dbname, user, passwd)
+ object_facade = xmlrpclib.ServerProxy(
+ url_template % (server, port, 'object'))
+
+ for i in range(1, howmany):
+ #
+ # Create one account move
+ #
+ move_id = object_facade.execute(dbname, user_id, passwd,
+ 'account.move', 'create', {
+ 'ref': 'Test%s' % i,
+ 'type': 'journal_voucher',
+ 'journal_id': 5,
+ 'line_id': [
+ (0, 0, {
+ 'analytic_account_id': False,
+ 'currency_id': False,
+ 'tax_amount': False,
+ 'account_id': 2,
+ 'partner_id': False,
+ 'tax_code_id': False,
+ 'credit': 1000.0,
+ 'date_maturity': False,
+ 'debit': False,
+ 'amount_currency': False,
+ 'ref': False,
+ 'name': 'Test_l1'
+ }),
+ (0, 0, {
+ 'analytic_account_id': False,
+ 'currency_id': False,
+ 'tax_amount': False,
+ 'account_id': 4,
+ 'partner_id': False,
+ 'tax_code_id': False,
+ 'credit': False,
+ 'date_maturity': False,
+ 'debit': 1000.0,
+ 'amount_currency': False,
+ 'ref': False,
+ 'name': 'Test_l2'})
+ ],
+ 'period_id': 1,
+ 'date': '2009-01-%s' % ((i % 31) or 1),
+ 'partner_id': False,
+ 'to_check': 0
+ },
+ {})
+
+ # Validate the move
+ object_facade.execute(dbname, user_id, passwd,
+ u'account.move', 'button_validate', [move_id], {})
+
+# ------------------------------------------------------------------------
+# ------------------------------------------------------------------------
+# ------------------------------------------------------------------------
+
+if __name__ == "__main__":
+ if len(sys.argv) < 5:
+ logger.info(u"Usage: %s <dbname> <user> <password> <howmany>" % sys.argv[0])
+ else:
+ create_lots_of_account_moves(
+ sys.argv[1], sys.argv[2], sys.argv[3], int(sys.argv[4]))
=== added directory 'account_renumber/wizard'
=== added file 'account_renumber/wizard/__init__.py'
--- account_renumber/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ account_renumber/wizard/__init__.py 2013-09-24 11:05:53 +0000
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP - Account renumber wizard
+# Copyright (C) 2009 Pexego Sistemas Informáticos. All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published
+# by the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+"""
+Account renumber wizard
+"""
+__author__ = "Borja López Soilán (Pexego) - borjals@xxxxxxxxx"
+
+
+import wizard_renumber
=== added file 'account_renumber/wizard/wizard_renumber.py'
--- account_renumber/wizard/wizard_renumber.py 1970-01-01 00:00:00 +0000
+++ account_renumber/wizard/wizard_renumber.py 2013-09-24 11:05:53 +0000
@@ -0,0 +1,220 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP - Account renumber wizard
+# Copyright (C) 2009 Pexego Sistemas Informáticos. All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published
+# by the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+"""
+Account renumber wizard
+"""
+__author__ = ["Borja López Soilán (Pexego)",
+ "Omar Castiñeira Saavedra (Pexego)"]
+
+
+from openerp.osv import fields, orm
+from openerp.tools.translate import _
+from datetime import datetime
+import logging
+import time
+
+class wizard_renumber(orm.TransientModel):
+ _name = "wizard.renumber"
+ _columns = {
+
+ 'journal_ids': fields.many2many('account.journal', 'account_journal_wzd_renumber_rel',
+ 'wizard_id', 'journal_id', required=True, help="Journals to renumber", string="Journals"),
+ 'period_ids': fields.many2many('account.period', 'account_period_wzd_renumber_rel', 'wizard_id', 'period_id', required=True,
+ help='Fiscal periods to renumber', string="Periods", ondelete='null'),
+ 'number_next': fields.integer('First Number', required=True, help="Journal sequences will start counting on this number"),
+ 'state': fields.selection([('init', 'Initial'), ('renumber', 'Renumbering')], readonly=True)
+ }
+
+ _defaults = {
+ 'number_next': 1,
+ 'state': 'init'
+ }
+
+ ###############################
+ # Helper methods
+ ###############################
+
+ def _process(self, s, date_to_use=None):
+ """
+ Based on ir_sequence._process. We need to have our own method
+ as ir_sequence one will always use the current date.
+ We will use the given date instead.
+ """
+ date_to_use = date_to_use or time
+ return (s or '') % {
+ 'year': date_to_use.strftime('%Y'),
+ 'month': date_to_use.strftime('%m'),
+ 'day': date_to_use.strftime('%d'),
+ 'y': date_to_use.strftime('%y'),
+ 'doy': date_to_use.strftime('%j'),
+ 'woy': date_to_use.strftime('%W'),
+ 'weekday': date_to_use.strftime('%w'),
+ 'h24': time.strftime('%H'),
+ 'h12': time.strftime('%I'),
+ 'min': time.strftime('%M'),
+ 'sec': time.strftime('%S'),
+ }
+
+ def get_id(self, cr, uid, sequence_id, test='id=%s', context=None, date_to_use=None):
+ """
+ Based on ir_sequence.get_id. We need to have our own method
+ as ir_sequence one will always use the current date for the prefix
+ and sufix processing. We will use the given date instead.
+ """
+ try:
+ cr.execute('SELECT id, number_next, prefix, suffix, padding FROM ir_sequence WHERE ' + test + ' AND active=%s FOR UPDATE', (sequence_id, True))
+ res = cr.dictfetchone()
+ if res:
+ cr.execute('UPDATE ir_sequence SET number_next=number_next+number_increment WHERE id=%s AND active=%s', (res['id'], True))
+ if res['number_next']:
+ return self._process(res['prefix'], date_to_use=date_to_use) + '%%0%sd' % res['padding'] % res['number_next'] + self._process(res['suffix'], date_to_use=date_to_use)
+ else:
+ return self._process(res['prefix'], date_to_use=date_to_use) + self._process(res['suffix'], date_to_use=date_to_use)
+ finally:
+ cr.commit()
+ return False
+
+ def get_sequence_id_for_fiscalyear_id(self, cr, uid, sequence_id, fiscalyear_id, context=None):
+ """
+ Based on ir_sequence.get_id from the account module.
+ Allows us to get the real sequence for the given fiscal year.
+ """
+ cr.execute('SELECT id FROM ir_sequence WHERE id=%s AND active=%s',
+ (sequence_id, True,))
+ res = cr.dictfetchone()
+ if res:
+ seq_facade = self.pool.get('ir.sequence')
+ for line in seq_facade.browse(cr, uid, res['id'], context=context).fiscal_ids:
+ if line.fiscalyear_id.id == fiscalyear_id:
+ return line.sequence_id.id
+ return sequence_id
+
+ ############################################################################
+ # Renumber form/action
+ ##########################################################################
+
+ def renumber(self, cr, uid, ids, context):
+ """
+ Action that renumbers all the posted moves on the given
+ journal and periods, and returns their ids.
+ """
+ logger = logging.getLogger("account_renumber")
+ obj = self.browse(cr, uid, ids[0])
+
+ period_ids = [x.id for x in obj.period_ids]
+ journal_ids = [x.id for x in obj.journal_ids]
+ number_next = obj.number_next or 1
+
+ if not (period_ids and journal_ids):
+ raise orm.except_orm(_('No Data Available'), _(
+ 'No records found for your selection!'))
+
+ logger.debug("Searching for account moves to renumber.")
+ move_facade = self.pool.get('account.move')
+ move_ids = move_facade.search(cr, uid, [('journal_id', 'in', journal_ids), ('period_id', 'in', period_ids), ('state', '=', 'posted')], limit=0, order='date,id', context=context)
+
+ if len(move_ids) == 0:
+ raise orm.except_orm(_('No Data Available'), _(
+ 'No records found for your selection!'))
+ sequences_seen = []
+ logger.debug("Renumbering %d account moves." % len(move_ids))
+
+ for move in move_facade.browse(cr, uid, move_ids):
+ #
+ # Get the sequence to use for this move.
+ # Note: We will use the journal's sequence or one of its
+ # children (if it has children sequences per fiscalyear)
+ #
+ sequence_id = self.get_sequence_id_for_fiscalyear_id(cr, uid,
+ sequence_id=move.journal_id.sequence_id.id,
+ fiscalyear_id=move.period_id.fiscalyear_id.id)
+ if not sequence_id in sequences_seen:
+ # First time we see this sequence, reset it
+ self.pool.get('ir.sequence').write(
+ cr, uid, [sequence_id], {'number_next': number_next})
+ sequences_seen.append(sequence_id)
+
+ #
+ # Generate (using our own get_id) and write the new move number.
+ #
+ date_to_use = datetime.strptime(move.date, '%Y-%m-%d')
+ new_name = self.get_id(cr, uid, sequence_id,
+ context=context, date_to_use=date_to_use)
+ # Note: We can't just do a
+ # "move_facade.write(cr, uid, [move.id], {'name': new_name})"
+ # cause it might raise a "You can't do this modification on a confirmed entry"
+ # exception.
+ cr.execute('UPDATE account_move SET name=%s WHERE id=%s',
+ (new_name, move.id))
+
+ logger.debug("%d account moves renumbered." % len(move_ids))
+
+ obj.write({'state': 'renumber'})
+
+ view_wizard = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account_renumber', 'view_account_renumber_form')
+ view_wizard_id = view_wizard and view_wizard[1] or False,
+ res = {
+ 'type': 'ir.actions.act_window',
+ 'name': _("Wizard successfully executed "),
+ 'res_model': 'wizard.renumber',
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_id': obj.id,
+ 'view_id': view_wizard_id,
+ 'context': context,
+ 'target': 'current',
+ }
+
+ return res
+
+ ############################################################################
+ # Show results action
+ ##########################################################################
+ def show_results(self, cr, uid, ids, context):
+ """
+ Action that shows the list of (non-draft) account moves from
+ the selected journals and periods, so the user can review
+ the renumbered account moves.
+ """
+ obj = self.browse(cr, uid, ids[0])
+ period_ids = [x.id for x in obj.period_ids]
+ journal_ids = [x.id for x in obj.journal_ids]
+
+ assert (period_ids and journal_ids)
+
+ view_ref = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account', 'view_move_tree')
+ view_id = view_ref and view_ref[1] or False,
+ res = {
+ 'type': 'ir.actions.act_window',
+ 'name': _("Renumbered account moves"),
+ 'res_model': 'account.move',
+ 'domain': "[('journal_id','in',%s), ('period_id','in',%s), ('state','=','posted')]" % (repr(journal_ids), repr(period_ids)),
+ 'view_type': 'form',
+ 'view_mode': 'tree',
+ 'view_id': view_id,
+ 'context': context,
+ 'target': 'current',
+ }
+ return res
+
+wizard_renumber()
=== added file 'account_renumber/wizard/wizard_renumber_view.xml'
--- account_renumber/wizard/wizard_renumber_view.xml 1970-01-01 00:00:00 +0000
+++ account_renumber/wizard/wizard_renumber_view.xml 2013-09-24 11:05:53 +0000
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+
+ <record id="view_account_renumber_form" model="ir.ui.view">
+ <field name="name">account_renumber.form</field>
+ <field name="model">wizard.renumber</field>
+ <field name="type">form</field>
+ <field name="arch" type="xml">
+ <form string="Renumber Account Moves" version="7.0">
+ <header>
+ <button special="cancel" string="Cancel"
+ attrs="{'invisible': [('state', '!=', 'init')]}" />
+ <button name="renumber" string="Renumber" states="init"
+ type="object" class="oe_highlight" />
+ <button name="show_results" string="Show Results" states="renumber"
+ type="object" />
+ </header>
+ <sheet>
+ <group string="General Data" attrs="{'invisible': [('state', '!=', 'init')]}">
+ <field name="number_next" attrs="{'invisible': [('state', '!=', 'init')]}" />
+ </group>
+ <group attrs="{'invisible': [('state', '!=', 'init')]}">
+ <label string="This wizard will help you renumber one or more journals."
+ colspan="4" />
+ <label
+ string="Posted moves from those journals will be sorted by date and then assigned sequential numbers using their journal sequence."
+ colspan="4" />
+ <newline />
+ <group string="Journals and periods to consider">
+ <notebook colspan="4">
+ <page string="Journals">
+ <field name="journal_ids" editable="top"
+ attrs="{'invisible': [('state', '!=', 'init')]}" />
+ </page>
+ <page string="Periods">
+ <field name="period_ids" editable="top"
+ attrs="{'invisible': [('state', '!=', 'init')]}" />
+ </page>
+ </notebook>
+ </group>
+
+ </group>
+ <group string="" colspan="4"
+ attrs="{'invisible': [('state', '=', 'init')]}">
+ <h1>
+ <label
+ string="The moves of the selected journals and periods have been renumbered."
+ colspan="4" />
+ </h1>
+ <label string="" colspan="4" />
+ <h2>
+ <label string="You may now review them using the show results button."
+ colspan="4" />
+ </h2>
+ </group>
+ <field name="state" invisible="1" />
+ </sheet>
+
+ </form>
+ </field>
+ </record>
+
+ <record id="action_account_renumber" model="ir.actions.act_window">
+ <field name="name">Renumber Account Moves</field>
+ <field name="res_model">wizard.renumber</field>
+ <field name="view_type">form</field>
+ <field name="view_mode">form</field>
+ <field name="view_id" ref="view_account_renumber_form" />
+ <!-- <field name="target">new</field> -->
+ </record>
+
+ <menuitem id="menu_account_renumber" parent="account.menu_account_end_year_treatments"
+ action="action_account_renumber" groups="base.group_system" sequence="-1" />
+
+ </data>
+</openerp>
Follow ups