diff --git a/account_journal_period_close/__init__.py b/account_journal_period_close/__init__.py deleted file mode 100644 index dcf937772..000000000 --- a/account_journal_period_close/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 model -from . import tests diff --git a/account_journal_period_close/__manifest__.py b/account_journal_period_close/__manifest__.py deleted file mode 100644 index 0e7a2abe0..000000000 --- a/account_journal_period_close/__manifest__.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 . -# -# - -{ - "name": "Account Journal Period Close", - "version": "8.0.1.0.0", - "author": "ACSONE SA/NV,Odoo Community Association (OCA)", - "maintainer": "ACSONE SA/NV", - "website": "http://www.acsone.eu", - "license": "AGPL-3", - "images": [], - "category": "Accounting", - "depends": [ - "account"], - "description": """ -Close period per journal -======================== - -This module allows fine grained control of period closing. -Each journal can be closed independently for any period -(using buttons on the fiscal period view). - -A common use case is letting accountants close the sale -and purchase journals when the VAT declaration is done for -a given period, while leaving the miscellaneous journal open. - -From a technical standpoint, the module leverages the -account.journal.period model that is present in Odoo core. -""", - "data": ['view/account_period_view.xml'], - "demo": [], - "test": [], - "licence": "AGPL-3", - 'installable': False, - "auto_install": False, - "application": True, -} diff --git a/account_journal_period_close/i18n/bg.po b/account_journal_period_close/i18n/bg.po deleted file mode 100644 index e724ec775..000000000 --- a/account_journal_period_close/i18n/bg.po +++ /dev/null @@ -1,76 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_journal_period_close -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-03 15:56+0000\n" -"Last-Translator: <>\n" -"Language-Team: Bulgarian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/bg/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: bg\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_period -msgid "Account period" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Add all journals" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Close journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:66 -#, python-format -msgid "" -"In order to close a journal, you must first post related journal entries." -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:65 -#, python-format -msgid "Invalid Action!" -msgstr "" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_journal_period -msgid "Journal Period" -msgstr "" - -#. module: account_journal_period_close -#: field:account.journal.period,type:0 -msgid "Journal Type" -msgstr "" - -#. module: account_journal_period_close -#: field:account.period,journal_period_ids:0 -msgid "Journal states" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Journals" -msgstr "Журнали" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Reopen journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: sql_constraint:account.journal.period:0 -msgid "You can not add same journal in the same period twice." -msgstr "" diff --git a/account_journal_period_close/i18n/ca.po b/account_journal_period_close/i18n/ca.po deleted file mode 100644 index 29bae9754..000000000 --- a/account_journal_period_close/i18n/ca.po +++ /dev/null @@ -1,76 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_journal_period_close -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-03 15:56+0000\n" -"Last-Translator: <>\n" -"Language-Team: Catalan (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/ca/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: ca\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_period -msgid "Account period" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Add all journals" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Close journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:66 -#, python-format -msgid "" -"In order to close a journal, you must first post related journal entries." -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:65 -#, python-format -msgid "Invalid Action!" -msgstr "" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_journal_period -msgid "Journal Period" -msgstr "" - -#. module: account_journal_period_close -#: field:account.journal.period,type:0 -msgid "Journal Type" -msgstr "" - -#. module: account_journal_period_close -#: field:account.period,journal_period_ids:0 -msgid "Journal states" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Journals" -msgstr "Diaris" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Reopen journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: sql_constraint:account.journal.period:0 -msgid "You can not add same journal in the same period twice." -msgstr "" diff --git a/account_journal_period_close/i18n/ca_ES.po b/account_journal_period_close/i18n/ca_ES.po deleted file mode 100644 index fa7868e2e..000000000 --- a/account_journal_period_close/i18n/ca_ES.po +++ /dev/null @@ -1,76 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_journal_period_close -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-03 15:56+0000\n" -"Last-Translator: <>\n" -"Language-Team: Catalan (Spain) (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/ca_ES/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: ca_ES\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_period -msgid "Account period" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Add all journals" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Close journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:66 -#, python-format -msgid "" -"In order to close a journal, you must first post related journal entries." -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:65 -#, python-format -msgid "Invalid Action!" -msgstr "" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_journal_period -msgid "Journal Period" -msgstr "" - -#. module: account_journal_period_close -#: field:account.journal.period,type:0 -msgid "Journal Type" -msgstr "" - -#. module: account_journal_period_close -#: field:account.period,journal_period_ids:0 -msgid "Journal states" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Journals" -msgstr "Diaris" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Reopen journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: sql_constraint:account.journal.period:0 -msgid "You can not add same journal in the same period twice." -msgstr "" diff --git a/account_journal_period_close/i18n/de.po b/account_journal_period_close/i18n/de.po deleted file mode 100644 index 6b81df9e3..000000000 --- a/account_journal_period_close/i18n/de.po +++ /dev/null @@ -1,76 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_journal_period_close -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-03 15:56+0000\n" -"Last-Translator: <>\n" -"Language-Team: German (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/de/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: de\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_period -msgid "Account period" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Add all journals" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Close journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:66 -#, python-format -msgid "" -"In order to close a journal, you must first post related journal entries." -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:65 -#, python-format -msgid "Invalid Action!" -msgstr "" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_journal_period -msgid "Journal Period" -msgstr "" - -#. module: account_journal_period_close -#: field:account.journal.period,type:0 -msgid "Journal Type" -msgstr "" - -#. module: account_journal_period_close -#: field:account.period,journal_period_ids:0 -msgid "Journal states" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Journals" -msgstr "Journale" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Reopen journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: sql_constraint:account.journal.period:0 -msgid "You can not add same journal in the same period twice." -msgstr "" diff --git a/account_journal_period_close/i18n/es.po b/account_journal_period_close/i18n/es.po deleted file mode 100644 index 36ff43fcb..000000000 --- a/account_journal_period_close/i18n/es.po +++ /dev/null @@ -1,76 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_journal_period_close -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-03 15:56+0000\n" -"Last-Translator: <>\n" -"Language-Team: Spanish (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/es/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: es\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_period -msgid "Account period" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Add all journals" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Close journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:66 -#, python-format -msgid "" -"In order to close a journal, you must first post related journal entries." -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:65 -#, python-format -msgid "Invalid Action!" -msgstr "" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_journal_period -msgid "Journal Period" -msgstr "" - -#. module: account_journal_period_close -#: field:account.journal.period,type:0 -msgid "Journal Type" -msgstr "" - -#. module: account_journal_period_close -#: field:account.period,journal_period_ids:0 -msgid "Journal states" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Journals" -msgstr "Diarios" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Reopen journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: sql_constraint:account.journal.period:0 -msgid "You can not add same journal in the same period twice." -msgstr "" diff --git a/account_journal_period_close/i18n/es_ES.po b/account_journal_period_close/i18n/es_ES.po deleted file mode 100644 index c97aa1222..000000000 --- a/account_journal_period_close/i18n/es_ES.po +++ /dev/null @@ -1,76 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_journal_period_close -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-03 15:56+0000\n" -"Last-Translator: <>\n" -"Language-Team: Spanish (Spain) (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/es_ES/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: es_ES\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_period -msgid "Account period" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Add all journals" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Close journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:66 -#, python-format -msgid "" -"In order to close a journal, you must first post related journal entries." -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:65 -#, python-format -msgid "Invalid Action!" -msgstr "" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_journal_period -msgid "Journal Period" -msgstr "" - -#. module: account_journal_period_close -#: field:account.journal.period,type:0 -msgid "Journal Type" -msgstr "" - -#. module: account_journal_period_close -#: field:account.period,journal_period_ids:0 -msgid "Journal states" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Journals" -msgstr "Diarios" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Reopen journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: sql_constraint:account.journal.period:0 -msgid "You can not add same journal in the same period twice." -msgstr "" diff --git a/account_journal_period_close/i18n/fr.po b/account_journal_period_close/i18n/fr.po deleted file mode 100644 index 9ce481b41..000000000 --- a/account_journal_period_close/i18n/fr.po +++ /dev/null @@ -1,78 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_journal_period_close -# -# Translators: -# Stéphane Bidoul , 2015 -# Yael Terrettaz , 2015 -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-09-10 18:21+0000\n" -"Last-Translator: Yael Terrettaz \n" -"Language-Team: French (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/fr/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: fr\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_period -msgid "Account period" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Add all journals" -msgstr "Ajouter tous les journaux" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Close journal for this period" -msgstr "Fermer le journal pour cette période" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:66 -#, python-format -msgid "" -"In order to close a journal, you must first post related journal entries." -msgstr "Pour pouvoir fermer un jounal, vous devez d'abord poster toutes les pièces dans la période concernée." - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:65 -#, python-format -msgid "Invalid Action!" -msgstr "Action incorrecte!" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_journal_period -msgid "Journal Period" -msgstr "Période du journal" - -#. module: account_journal_period_close -#: field:account.journal.period,type:0 -msgid "Journal Type" -msgstr "Type de journal" - -#. module: account_journal_period_close -#: field:account.period,journal_period_ids:0 -msgid "Journal states" -msgstr "Etats des journaux" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Journals" -msgstr "Journaux" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Reopen journal for this period" -msgstr "Réouvrir le journal pour cette période" - -#. module: account_journal_period_close -#: sql_constraint:account.journal.period:0 -msgid "You can not add same journal in the same period twice." -msgstr "Vous ne pouvez pas ajouter deux fois le même journal dans une période." diff --git a/account_journal_period_close/i18n/gl.po b/account_journal_period_close/i18n/gl.po deleted file mode 100644 index 8a177c5e8..000000000 --- a/account_journal_period_close/i18n/gl.po +++ /dev/null @@ -1,76 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_journal_period_close -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-03 15:56+0000\n" -"Last-Translator: <>\n" -"Language-Team: Galician (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/gl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: gl\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_period -msgid "Account period" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Add all journals" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Close journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:66 -#, python-format -msgid "" -"In order to close a journal, you must first post related journal entries." -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:65 -#, python-format -msgid "Invalid Action!" -msgstr "" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_journal_period -msgid "Journal Period" -msgstr "" - -#. module: account_journal_period_close -#: field:account.journal.period,type:0 -msgid "Journal Type" -msgstr "" - -#. module: account_journal_period_close -#: field:account.period,journal_period_ids:0 -msgid "Journal states" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Journals" -msgstr "Xornais" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Reopen journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: sql_constraint:account.journal.period:0 -msgid "You can not add same journal in the same period twice." -msgstr "" diff --git a/account_journal_period_close/i18n/pt.po b/account_journal_period_close/i18n/pt.po deleted file mode 100644 index a8afa19c3..000000000 --- a/account_journal_period_close/i18n/pt.po +++ /dev/null @@ -1,76 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_journal_period_close -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-03 15:56+0000\n" -"Last-Translator: <>\n" -"Language-Team: Portuguese (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/pt/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: pt\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_period -msgid "Account period" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Add all journals" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Close journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:66 -#, python-format -msgid "" -"In order to close a journal, you must first post related journal entries." -msgstr "" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:65 -#, python-format -msgid "Invalid Action!" -msgstr "" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_journal_period -msgid "Journal Period" -msgstr "" - -#. module: account_journal_period_close -#: field:account.journal.period,type:0 -msgid "Journal Type" -msgstr "" - -#. module: account_journal_period_close -#: field:account.period,journal_period_ids:0 -msgid "Journal states" -msgstr "" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Journals" -msgstr "Diários" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Reopen journal for this period" -msgstr "" - -#. module: account_journal_period_close -#: sql_constraint:account.journal.period:0 -msgid "You can not add same journal in the same period twice." -msgstr "" diff --git a/account_journal_period_close/i18n/sl.po b/account_journal_period_close/i18n/sl.po deleted file mode 100644 index ecc435418..000000000 --- a/account_journal_period_close/i18n/sl.po +++ /dev/null @@ -1,77 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_journal_period_close -# -# Translators: -# Matjaž Mozetič , 2015 -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-13 05:32+0000\n" -"Last-Translator: Matjaž Mozetič \n" -"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/sl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_period -msgid "Account period" -msgstr "Knjigovodsko obdobje" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Add all journals" -msgstr "Dodaj vse dnevnike" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Close journal for this period" -msgstr "Zaključi dnevnik za to obdobje" - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:66 -#, python-format -msgid "" -"In order to close a journal, you must first post related journal entries." -msgstr "Da bi lahko zaključili dnevnik, morate najprej razknjižiti povezane dnevniške vnose." - -#. module: account_journal_period_close -#: code:addons/account_journal_period_close/model/account_journal_period.py:65 -#, python-format -msgid "Invalid Action!" -msgstr "Neveljavno dejanje!" - -#. module: account_journal_period_close -#: model:ir.model,name:account_journal_period_close.model_account_journal_period -msgid "Journal Period" -msgstr "Dnevniško obdobje" - -#. module: account_journal_period_close -#: field:account.journal.period,type:0 -msgid "Journal Type" -msgstr "Tip dnevnika" - -#. module: account_journal_period_close -#: field:account.period,journal_period_ids:0 -msgid "Journal states" -msgstr "Stanja dnevnika" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Journals" -msgstr "Dnevniki" - -#. module: account_journal_period_close -#: view:account.period:account_journal_period_close.view_account_period_form -msgid "Reopen journal for this period" -msgstr "Ponovno odpri dnevnik za to obdobje" - -#. module: account_journal_period_close -#: sql_constraint:account.journal.period:0 -msgid "You can not add same journal in the same period twice." -msgstr "Ne morete dvakrat dodati istega dnevnika za isto obdobje." diff --git a/account_journal_period_close/model/__init__.py b/account_journal_period_close/model/__init__.py deleted file mode 100644 index 277c5ad55..000000000 --- a/account_journal_period_close/model/__init__.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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_journal_period -from . import account_period diff --git a/account_journal_period_close/model/account_journal_period.py b/account_journal_period_close/model/account_journal_period.py deleted file mode 100644 index 4ac693e94..000000000 --- a/account_journal_period_close/model/account_journal_period.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 -from openerp.tools.translate import _ - - -class AccountJournalPeriod(orm.Model): - _inherit = 'account.journal.period' - _order = "type,name" - _columns = { - 'type': fields.related('journal_id', 'type', type='char', - relation='account.journal', - string='Journal Type', - store=True, readonly=True) - } - - _sql_constraints = [ - ('journal_period_uniq', 'unique(period_id, journal_id)', - 'You can not add same journal in the same period twice.'), - ] - - def _check(self, cr, uid, ids, context=None): - return True - - def action_draft(self, cr, uid, ids, context=None): - return self.write(cr, uid, ids, {'state': 'draft'}) - - def action_done(self, cr, uid, ids, context=None): - for journal_period in self.browse(cr, uid, ids, context=context): - draft_move_ids = self.pool.get('account.move')\ - .search(cr, uid, [('period_id', '=', - journal_period.period_id.id), - ('state', '=', "draft"), - ('journal_id', '=', - journal_period.journal_id.id)], - context=context) - if draft_move_ids: - raise orm.except_orm(_('Invalid Action!'), - _('In order to close a journal,' - ' you must first post related' - ' journal entries.')) - return self.write(cr, uid, ids, {'state': 'done'}) - - def create(self, cr, uid, values, context=None): - if 'name' not in values: - if values.get('period_id') and values.get('journal_id'): - journal = self.pool.get('account.journal')\ - .browse(cr, uid, values['journal_id'], context=context) - period = self.pool.get('account.period')\ - .browse(cr, uid, values['period_id'], context=context) - values.update({'name': (journal.code or journal.name)+':' + - (period.name or '')}) - return super(AccountJournalPeriod, self).create(cr, - uid, - values, - context=context) diff --git a/account_journal_period_close/model/account_period.py b/account_journal_period_close/model/account_period.py deleted file mode 100644 index 191d63b8b..000000000 --- a/account_journal_period_close/model/account_period.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 AccountPeriod(orm.Model): - _inherit = 'account.period' - _columns = { - 'journal_period_ids': fields.one2many('account.journal.period', - 'period_id', 'Journal states'), - } - - def add_all_journals(self, cr, uid, ids, context=None): - this = self.browse(cr, uid, ids, context=context)[0] - journal_period_obj = self.pool.get('account.journal.period') - journal_period_ids = journal_period_obj\ - .search(cr, uid, [('period_id', '=', this.id)], context=context) - journal_list = [] - for journal_period in journal_period_obj.browse(cr, - uid, - journal_period_ids, - context=context): - journal_list.append(journal_period.journal_id.id) - journal_ids = self.pool.get('account.journal')\ - .search(cr, uid, [('id', 'not in', journal_list)], context=context) - for journal_id in journal_ids: - journal_period_obj.create(cr, - uid, - {'period_id': this.id, - 'journal_id': journal_id, - 'state': this.state}) diff --git a/account_journal_period_close/static/description/icon.png b/account_journal_period_close/static/description/icon.png deleted file mode 100644 index 3a0328b51..000000000 Binary files a/account_journal_period_close/static/description/icon.png and /dev/null differ diff --git a/account_journal_period_close/tests/__init__.py b/account_journal_period_close/tests/__init__.py deleted file mode 100644 index 1d4899c26..000000000 --- a/account_journal_period_close/tests/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 test_account_journal_period_close - - -checks = [ - test_account_journal_period_close, -] diff --git a/account_journal_period_close/tests/test_account_journal_period_close.py b/account_journal_period_close/tests/test_account_journal_period_close.py deleted file mode 100644 index e66006c17..000000000 --- a/account_journal_period_close/tests/test_account_journal_period_close.py +++ /dev/null @@ -1,224 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 . -# -# - -import openerp.tests.common as common -from openerp.exceptions import except_orm -from datetime import datetime -from psycopg2 import IntegrityError - - -def get_simple_account_move_values(self, period_id, journal_id): - sale_product_account_id = self.ref('account.a_sale') - cash_account_id = self.ref('account.cash') - partner_id = self.ref('base.res_partner_2') - year = datetime.now().strftime('%Y') - return {'partner_id': partner_id, - 'period_id': period_id, - 'date': year + '-01-01', - 'journal_id': journal_id, - 'line_id': [(0, 0, {'name': 'test', - 'account_id': cash_account_id, - 'debit': 50.0, - }), - (0, 0, {'name': 'test_conterpart', - 'account_id': sale_product_account_id, - 'credit': 50.0, - }) - ] - } - - -def close_period(self, period_id, context=None): - close_period_wizard_id =\ - self.registry('account.period.close').create(self.cr, - self.uid, - {'sure': True - }, - context=context) - context.update({'active_ids': [period_id]}) - self.registry('account.period.close')\ - .data_save(self.cr, - self.uid, - [close_period_wizard_id], - context=context) - - -def create_journal_period(self, period_id, journal_id, context): - jour_per_obj = self.registry('account.journal.period') - journal_period_id = jour_per_obj.create(self.cr, - self.uid, - {'period_id': period_id, - 'journal_id': journal_id, - }, - context=context) - return journal_period_id - - -def journal_period_done(self, journal_period_id, context): - jour_per_obj = self.registry('account.journal.period') - jour_per_obj.action_done(self.cr, - self.uid, - [journal_period_id], - context=context) - - -def journal_period_draft(self, journal_period_id, context): - jour_per_obj = self.registry('account.journal.period') - jour_per_obj.action_draft(self.cr, - self.uid, - [journal_period_id], - context=context) - - -def get_journal_copy_id(self, journal_id, context=None): - return self.registry('account.journal').copy(self.cr, self.uid, - journal_id, {}, context) - - -def create_fiscalyear(self, year, company_id): - fiscalyear_obj = self.registry('account.fiscalyear') - fiscalyear_id = fiscalyear_obj.create(self.cr, self.uid, { - 'name': year, - 'code': year, - 'date_start': year + '-01-01', - 'date_stop': year + '-12-31', - 'company_id': company_id - }) - fiscalyear_obj.create_period(self.cr, self.uid, [fiscalyear_id]) - return fiscalyear_id - - -class TestAccountJournalPeriodClose(common.TransactionCase): - - def setUp(self): - super(TestAccountJournalPeriodClose, self).setUp() - company_id = self.ref('base.main_company') - fiscalyear_id = create_fiscalyear(self, '2013', company_id) - journal_id = self.ref('account.sales_journal') - self.period_id = self.registry('account.period')\ - .search(self.cr, self.uid, [('fiscalyear_id', '=', fiscalyear_id)], - limit=1)[0] - self.journal_id = get_journal_copy_id(self, journal_id) - - def test_close_period_open_journal(self): - context = {} - close_period(self, self.period_id, context) - journal_period_id = create_journal_period(self, - self.period_id, - self.journal_id, - context) - journal_period_draft(self, journal_period_id, context) - self.registry('account.move')\ - .create(self.cr, - self.uid, - get_simple_account_move_values(self, - self.period_id, - self.journal_id), - context=context) - # Here, no exception should be raised because the journal's state is - # draft although the period is closed - - def test_open_period_close_journal(self): - context = {} - journal_period_id = create_journal_period(self, - self.period_id, - self.journal_id, - context) - journal_period_done(self, journal_period_id, context) - move_values = get_simple_account_move_values(self, - self.period_id, - self.journal_id) - # I check if the exception is correctly raised at create of an account - # move which is linked with a closed journal - self.assertRaises(except_orm, - self.registry('account.move').create, - self.cr, self.uid, move_values, context=context) - - def test_change_journal_on_move(self): - context = {} - journal_cash_id = self.ref('account.cash_journal') - journal_period_id = create_journal_period(self, - self.period_id, - self.journal_id, - context) - journal_period_done(self, journal_period_id, context) - move_values = get_simple_account_move_values(self, - self.period_id, - journal_cash_id) - self.registry('account.move').create(self.cr, - self.uid, - move_values, - context=context) - # Standard of Odoo doesn't check account_journal_period at write on - # account_move - # issue on Odoo github : #1633 - - # I check if the exception is correctly raised - # self.assertRaises(except_orm, - # self.registry('account.move').write, - # self.cr, self.uid, [move_id], - # {'journal_id': journal_id}, context=context) - - def test_draft_move_close_journal(self): - context = {} - - jour_per_obj = self.registry('account.journal.period') - move_values = get_simple_account_move_values(self, - self.period_id, - self.journal_id) - self.registry('account.move').create(self.cr, - self.uid, - move_values, - context=context) - journal_period_ids =\ - jour_per_obj.search(self.cr, - self.uid, - [('period_id', '=', self.period_id), - ('journal_id', '=', self.journal_id), - ], - context=context) - # I check if the exception is correctly raised at closing journal that - # contains some draft account move - self.assertRaises(except_orm, - jour_per_obj.action_done, - self.cr, self.uid, journal_period_ids, - context=context) - - def test_duplicate_journal_period(self): - context = {} - create_journal_period(self, self.period_id, self.journal_id, context) - # I check if the exception is correctly raised at adding both same - # journal on a period - self.cr._default_log_exceptions = False - try: - self.assertRaises(IntegrityError, - create_journal_period, - self, self.period_id, self.journal_id, context) - finally: - self.cr._default_log_exceptions = True diff --git a/account_journal_period_close/view/account_period_view.xml b/account_journal_period_close/view/account_period_view.xml deleted file mode 100644 index bd9a2a42f..000000000 --- a/account_journal_period_close/view/account_period_view.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - account.period.form - (account_journal_period_close) - account.period - - - - - -