forked from OCA/account-financial-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by sbidoul
- Loading branch information
Showing
142 changed files
with
14,287 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
========================= | ||
Account Journal Lock Date | ||
========================= | ||
|
||
Lock each accounting journal independently. | ||
|
||
In addition to the lock dates provided by standard Odoo and | ||
account_permanent_lock_move, provide a per journal lock date. | ||
|
||
Note: this module depends on account_permanent_lock_move because it | ||
implements stricter checks than standard Odoo, such as verifying that | ||
one cannot create draft moves before the lock date. | ||
|
||
Note: the journal lock date is ignored for users that are part of | ||
the Adviser group. This rule can be adapted by overriding method | ||
`_can_bypass_journal_lock_date` of `account.journal`. | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to set | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/{repo_id}/{branch} | ||
|
||
.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt | ||
.. branch is "8.0" for example | ||
Known issues / Roadmap | ||
====================== | ||
|
||
* a wizard to set the lock date on several journals could be nice to have | ||
* the module does not check that all moves prior the lock date are posted, this could be | ||
made as part of the wizard | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/{project_repo}/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smashing it by providing a detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
|
||
Contributors | ||
------------ | ||
|
||
* Stéphane Bidoul <[email protected]> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2017 ACSONE SA/NV | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
'name': 'Account Journal Lock Date', | ||
'summary': """ | ||
Lock each journal independently""", | ||
'version': '11.0.1.0.0', | ||
'license': 'AGPL-3', | ||
'author': 'ACSONE SA/NV,Odoo Community Association (OCA)', | ||
'website': 'https://github.com/OCA/account-financial-tools', | ||
'depends': [ | ||
'account_permanent_lock_move', | ||
], | ||
'data': [ | ||
'views/account_journal.xml', | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright 2017 ACSONE SA/NV | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo.exceptions import UserError | ||
|
||
|
||
class JournalLockDateError(UserError): | ||
pass |
41 changes: 41 additions & 0 deletions
41
account_journal_lock_date/i18n/account_journal_lock_date.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_journal_lock_date | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: <>\n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_move | ||
msgid "Account Entry" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_journal | ||
msgid "Journal" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,field_description:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "Lock date" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,help:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "Moves cannot be entered nor modified in this journal prior to the lock date, unless the user has the Adviser role." | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: code:addons/account_journal_lock_date/models/account_move.py:23 | ||
#, python-format | ||
msgid "You cannot add/modify entries prior to and inclusive of the journal lock date %s" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_journal_lock_date | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-05-30 00:47+0000\n" | ||
"PO-Revision-Date: 2017-05-30 00:47+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n" | ||
"Language: am\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_move | ||
msgid "Account Entry" | ||
msgstr "Asiento contable" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_journal | ||
msgid "Journal" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,field_description:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "Lock date" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,help:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "" | ||
"Moves cannot be entered nor modified in this journal prior to the lock date, " | ||
"unless the user has the Adviser role." | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: code:addons/account_journal_lock_date/models/account_move.py:23 | ||
#, python-format | ||
msgid "" | ||
"You cannot add/modify entries prior to and inclusive of the journal lock " | ||
"date %s" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_journal_lock_date | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-05-30 00:47+0000\n" | ||
"PO-Revision-Date: 2017-05-30 00:47+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" | ||
"Language: ar\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " | ||
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_move | ||
msgid "Account Entry" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_journal | ||
msgid "Journal" | ||
msgstr "السجل اليومي" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,field_description:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "Lock date" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,help:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "" | ||
"Moves cannot be entered nor modified in this journal prior to the lock date, " | ||
"unless the user has the Adviser role." | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: code:addons/account_journal_lock_date/models/account_move.py:23 | ||
#, python-format | ||
msgid "" | ||
"You cannot add/modify entries prior to and inclusive of the journal lock " | ||
"date %s" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_journal_lock_date | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-05-30 00:47+0000\n" | ||
"PO-Revision-Date: 2017-05-30 00:47+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n" | ||
"Language: bs\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" | ||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_move | ||
msgid "Account Entry" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_journal | ||
msgid "Journal" | ||
msgstr "Dnevnik" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,field_description:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "Lock date" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,help:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "" | ||
"Moves cannot be entered nor modified in this journal prior to the lock date, " | ||
"unless the user has the Adviser role." | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: code:addons/account_journal_lock_date/models/account_move.py:23 | ||
#, python-format | ||
msgid "" | ||
"You cannot add/modify entries prior to and inclusive of the journal lock " | ||
"date %s" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_journal_lock_date | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-05-30 00:47+0000\n" | ||
"PO-Revision-Date: 2017-05-30 00:47+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" | ||
"Language: ca\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_move | ||
msgid "Account Entry" | ||
msgstr "Assentament comptable" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_journal | ||
msgid "Journal" | ||
msgstr "Diari" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,field_description:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "Lock date" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,help:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "" | ||
"Moves cannot be entered nor modified in this journal prior to the lock date, " | ||
"unless the user has the Adviser role." | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: code:addons/account_journal_lock_date/models/account_move.py:23 | ||
#, python-format | ||
msgid "" | ||
"You cannot add/modify entries prior to and inclusive of the journal lock " | ||
"date %s" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_journal_lock_date | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-05-30 00:47+0000\n" | ||
"PO-Revision-Date: 2017-05-30 00:47+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n" | ||
"Language: cs\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_move | ||
msgid "Account Entry" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model,name:account_journal_lock_date.model_account_journal | ||
msgid "Journal" | ||
msgstr "Deník" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,field_description:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "Lock date" | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: model:ir.model.fields,help:account_journal_lock_date.field_account_journal_journal_lock_date | ||
msgid "" | ||
"Moves cannot be entered nor modified in this journal prior to the lock date, " | ||
"unless the user has the Adviser role." | ||
msgstr "" | ||
|
||
#. module: account_journal_lock_date | ||
#: code:addons/account_journal_lock_date/models/account_move.py:23 | ||
#, python-format | ||
msgid "" | ||
"You cannot add/modify entries prior to and inclusive of the journal lock " | ||
"date %s" | ||
msgstr "" |
Oops, something went wrong.