2
0

pre-commit

This commit is contained in:
Andrea 2020-01-17 11:41:26 +01:00 committed by syera bonneaux
parent 7886472828
commit 0b9e2510c1
80 changed files with 173 additions and 170 deletions

View File

@ -14,13 +14,13 @@ Account Lock Date Update
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github
:target: https://github.com/OCA/account-financial-tools/tree/12.0/account_lock_date_update
:target: https://github.com/OCA/account-financial-tools/tree/13.0/account_lock_date_update
:alt: OCA/account-financial-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_lock_date_update
:target: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_lock_date_update
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/92/12.0
:target: https://runbot.odoo-community.org/runbot/92/13.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@ -47,7 +47,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/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 <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_lock_date_update%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_lock_date_update%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
@ -65,6 +65,7 @@ Contributors
* Benjamin Willig <benjamin.willig@acsone.eu>
* Fekete Mihai <feketemihai@gmail.com>
* Kitti Upariphutthiphong <kittiu@ecosoft.co.th>
* Andrea Stirpe <a.stirpe@onestein.nl>
Maintainers
~~~~~~~~~~~
@ -79,6 +80,6 @@ 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.
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/12.0/account_lock_date_update>`_ project on GitHub.
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/13.0/account_lock_date_update>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -2,19 +2,15 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Account Lock Date Update',
'summary': """
"name": "Account Lock Date Update",
"summary": """
Allow an Account adviser to update locking date without having
access to all technical settings""",
'version': '13.0.1.0.0',
'license': 'AGPL-3',
'author': 'ACSONE SA/NV, Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/account-financial-tools',
'installable': True,
'depends': [
'account',
],
'data': [
'wizards/account_update_lock_date.xml',
],
"version": "13.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools",
"installable": True,
"depends": ["account"],
"data": ["wizards/account_update_lock_date.xml"],
}

View File

@ -1,12 +1,12 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_lock_date_update
# * account_lock_date_update
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -75,12 +75,17 @@ msgstr ""
#. module: account_lock_date_update
#: model:ir.model.fields,help:account_lock_date_update.field_account_update_lock_date__fiscalyear_lock_date
msgid "No users, including Advisers, can edit accounts prior to and inclusive of this date. Use it for fiscal year locking for example."
msgid ""
"No users, including Advisers, can edit accounts prior to and inclusive of "
"this date. Use it for fiscal year locking for example."
msgstr ""
#. module: account_lock_date_update
#: model:ir.model.fields,help:account_lock_date_update.field_account_update_lock_date__period_lock_date
msgid "Only users with the 'Adviser' role can edit accounts prior to and inclusive of this date. Use it for period locking inside an open fiscal year, for example."
msgid ""
"Only users with the 'Adviser' role can edit accounts prior to and inclusive "
"of this date. Use it for period locking inside an open fiscal year, for "
"example."
msgstr ""
#. module: account_lock_date_update
@ -95,8 +100,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -112,7 +112,7 @@ msgid "Update accounting lock dates"
msgstr "تحديث تواريخ الاقفال"
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr "لا يمكنك اتمام هذه العملية."

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -111,7 +111,7 @@ msgid "Update accounting lock dates"
msgstr "Aktualisiere Kontosperrdaten"
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr "Sie haben keine Berechtigung für diese Aktion."

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -112,7 +112,7 @@ msgid "Update accounting lock dates"
msgstr "Actualizar fechas de bloqueo contable"
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr "No está autorizado a realizar esta acción."

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -107,7 +107,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -16,8 +16,8 @@ msgstr ""
"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"
"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"
"X-Generator: Weblate 3.8\n"
#. module: account_lock_date_update
@ -109,7 +109,7 @@ msgid "Update accounting lock dates"
msgstr "Ažuriraj datume zaključavanja"
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr "Nije vam odobreno izvršiti ovu radnju."

View File

@ -107,7 +107,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -107,7 +107,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -107,7 +107,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -111,7 +111,7 @@ msgid "Update accounting lock dates"
msgstr "Atualizar data de bloqueio de contas"
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr "Não está autorizado a executar esta ação."

View File

@ -11,8 +11,8 @@ msgstr ""
"POT-Creation-Date: 2017-11-28 23:24+0000\n"
"PO-Revision-Date: 2019-07-09 01:43+0000\n"
"Last-Translator: Eduardo Aparicio <eduardo.caparica@gmail.com>\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/"
"23907/pt_BR/)\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
"teams/23907/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -112,7 +112,7 @@ msgid "Update accounting lock dates"
msgstr "Atualizar datas de bloqueio contábil"
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr "Você não tem permissão para realizar esta ação."

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -107,7 +107,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -107,7 +107,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -107,7 +107,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -105,7 +105,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -106,7 +106,7 @@ msgid "Update accounting lock dates"
msgstr ""
#. module: account_lock_date_update
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42
#: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:0
#, python-format
msgid "You are not allowed to execute this action."
msgstr ""

View File

@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/12.0/account_lock_date_update"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_lock_date_update"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/92/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/13.0/account_lock_date_update"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_lock_date_update"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/92/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>Allow an Account adviser to update locking date without having
access to all technical settings.</p>
<p><strong>Table of contents</strong></p>
@ -396,7 +396,7 @@ access to all technical settings.</p>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_lock_date_update%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_lock_date_update%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
@ -413,6 +413,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<li>Benjamin Willig &lt;<a class="reference external" href="mailto:benjamin.willig&#64;acsone.eu">benjamin.willig&#64;acsone.eu</a>&gt;</li>
<li>Fekete Mihai &lt;<a class="reference external" href="mailto:feketemihai&#64;gmail.com">feketemihai&#64;gmail.com</a>&gt;</li>
<li>Kitti Upariphutthiphong &lt;<a class="reference external" href="mailto:kittiu&#64;ecosoft.co.th">kittiu&#64;ecosoft.co.th</a>&gt;</li>
<li>Andrea Stirpe &lt;<a class="reference external" href="mailto:a.stirpe&#64;onestein.nl">a.stirpe&#64;onestein.nl</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
@ -422,7 +423,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/12.0/account_lock_date_update">OCA/account-financial-tools</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/13.0/account_lock_date_update">OCA/account-financial-tools</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>

View File

@ -2,51 +2,42 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo.tests.common import TransactionCase
from odoo.exceptions import UserError
from odoo.tests.common import TransactionCase
class TestAccountLockDateUpdate(TransactionCase):
def setUp(self):
super().setUp()
self.company = self.env.ref('base.main_company')
self.demo_user = self.env.ref('base.user_demo')
self.adviser_group = self.env.ref('account.group_account_manager')
self.UpdateLockDateUpdateObj = self.env[
'account.update.lock_date'
].with_user(self.demo_user)
self.company = self.env.ref("base.main_company")
self.demo_user = self.env.ref("base.user_demo")
self.adviser_group = self.env.ref("account.group_account_manager")
self.UpdateLockDateUpdateObj = self.env["account.update.lock_date"].with_user(
self.demo_user
)
def create_account_lock_date_update(self):
return self.UpdateLockDateUpdateObj.create({
'company_id': self.company.id,
})
return self.UpdateLockDateUpdateObj.create({"company_id": self.company.id})
def test_01_update_without_access(self):
wizard = self.create_account_lock_date_update()
wizard.write({
'period_lock_date': '2000-01-01',
'fiscalyear_lock_date': '2000-01-01',
})
self.demo_user.write({
'groups_id': [(3, self.adviser_group.id)],
})
wizard.write(
{"period_lock_date": "2000-01-01", "fiscalyear_lock_date": "2000-01-01"}
)
self.demo_user.write({"groups_id": [(3, self.adviser_group.id)]})
with self.assertRaises(UserError):
wizard.with_user(self.demo_user.id).execute()
def test_02_update_with_access(self):
wizard = self.create_account_lock_date_update()
wizard.write({
'period_lock_date': '2000-02-01',
'fiscalyear_lock_date': '2000-01-01',
})
self.demo_user.write({
'groups_id': [(4, self.adviser_group.id)],
})
wizard.write(
{"period_lock_date": "2000-02-01", "fiscalyear_lock_date": "2000-01-01"}
)
self.demo_user.write({"groups_id": [(4, self.adviser_group.id)]})
wizard.with_user(self.demo_user.id).execute()
self.assertEqual(
fields.Date.to_string(self.company.period_lock_date),
'2000-02-01')
fields.Date.to_string(self.company.period_lock_date), "2000-02-01"
)
self.assertEqual(
fields.Date.to_string(self.company.fiscalyear_lock_date),
'2000-01-01')
fields.Date.to_string(self.company.fiscalyear_lock_date), "2000-01-01"
)

View File

@ -1,48 +1,53 @@
# Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models, _
from odoo import _, api, fields, models
from odoo.exceptions import UserError
class AccountUpdateLockDate(models.TransientModel):
_name = 'account.update.lock_date'
_description = 'Account Update Lock_date'
_name = "account.update.lock_date"
_description = "Account Update Lock_date"
company_id = fields.Many2one(
comodel_name='res.company', required=True)
company_id = fields.Many2one(comodel_name="res.company", required=True)
period_lock_date = fields.Date(
string="Lock Date for Non-Advisers",
help="Only users with the 'Adviser' role can edit accounts prior to "
"and inclusive of this date. Use it for period locking inside an "
"open fiscal year, for example.")
"and inclusive of this date. Use it for period locking inside an "
"open fiscal year, for example.",
)
fiscalyear_lock_date = fields.Date(
string="Lock Date",
help="No users, including Advisers, can edit accounts prior to and "
"inclusive of this date. Use it for fiscal year locking for "
"example.")
"inclusive of this date. Use it for fiscal year locking for "
"example.",
)
@api.model
def default_get(self, field_list):
res = super().default_get(field_list)
company = self.env.company
res.update({
'company_id': company.id,
'period_lock_date': company.period_lock_date,
'fiscalyear_lock_date': company.fiscalyear_lock_date,
})
res.update(
{
"company_id": company.id,
"period_lock_date": company.period_lock_date,
"fiscalyear_lock_date": company.fiscalyear_lock_date,
}
)
return res
def _check_execute_allowed(self):
self.ensure_one()
has_adviser_group = self.env.user.has_group('account.group_account_manager')
has_adviser_group = self.env.user.has_group("account.group_account_manager")
if not (has_adviser_group or self.env.user._is_admin()):
raise UserError(_("You are not allowed to execute this action."))
def execute(self):
self.ensure_one()
self._check_execute_allowed()
self.company_id.sudo().write({
'period_lock_date': self.period_lock_date,
'fiscalyear_lock_date': self.fiscalyear_lock_date,
})
self.company_id.sudo().write(
{
"period_lock_date": self.period_lock_date,
"fiscalyear_lock_date": self.fiscalyear_lock_date,
}
)

View File

@ -1,47 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="account_update_lock_date_form_view" model="ir.ui.view">
<field name="name">account.update.lock_date.form (in account_lock_date_update)</field>
<field
name="name"
>account.update.lock_date.form (in account_lock_date_update)</field>
<field name="model">account.update.lock_date</field>
<field name="arch" type="xml">
<form>
<header/>
<header />
<sheet>
<group>
<group>
<field name="company_id" invisible="1"/>
<field name="period_lock_date"/>
<field name="company_id" invisible="1" />
<field name="period_lock_date" />
</group>
<group>
<field name="fiscalyear_lock_date"/>
<field name="fiscalyear_lock_date" />
</group>
</group>
</sheet>
<footer>
<button string="Update" name="execute" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-default" special="cancel"/>
<button
string="Update"
name="execute"
type="object"
class="btn-primary"
/>
<button string="Cancel" class="btn-default" special="cancel" />
</footer>
</form>
</field>
</record>
<record id="account_update_lock_date_act_window" model="ir.actions.act_window">
<field name="name">Update accounting lock dates</field>
<field name="res_model">account.update.lock_date</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<record id="account_update_lock_date_menu" model="ir.ui.menu">
<field name="name">Update accounting lock dates</field>
<field name="parent_id" ref="account.menu_finance_entries_actions"/>
<field name="action" ref="account_update_lock_date_act_window"/>
<field name="groups_id" eval="[(6, 0, [ref('account.group_account_manager')])]"/>
<field name="sequence" eval="70"/>
<field name="parent_id" ref="account.menu_finance_entries_actions" />
<field name="action" ref="account_update_lock_date_act_window" />
<field
name="groups_id"
eval="[(6, 0, [ref('account.group_account_manager')])]"
/>
<field name="sequence" eval="70" />
</record>
</odoo>