From 82df17e4300ca5398a1282a15d0776527f5bdfdf Mon Sep 17 00:00:00 2001
From: aromera
Date: Mon, 10 Jan 2022 14:57:55 +0100
Subject: [PATCH] [MIG] account_lock_to_date: Migration to 14.0
---
account_lock_to_date/README.rst | 10 +++++-----
account_lock_to_date/__manifest__.py | 7 +++++--
account_lock_to_date/i18n/account_lock_to_date.pot | 10 ++++++++--
account_lock_to_date/security/ir.model.access.csv | 2 ++
account_lock_to_date/static/description/index.html | 6 +++---
.../tests/test_account_lock_to_date_update.py | 2 +-
6 files changed, 24 insertions(+), 13 deletions(-)
create mode 100644 account_lock_to_date/security/ir.model.access.csv
diff --git a/account_lock_to_date/README.rst b/account_lock_to_date/README.rst
index 06e79f4bf..57aa9a13a 100644
--- a/account_lock_to_date/README.rst
+++ b/account_lock_to_date/README.rst
@@ -14,13 +14,13 @@ Account Lock To Date
: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/13.0/account_lock_to_date
+ :target: https://github.com/OCA/account-financial-tools/tree/14.0/account_lock_to_date
: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-13-0/account-financial-tools-13-0-account_lock_to_date
+ :target: https://translation.odoo-community.org/projects/account-financial-tools-14-0/account-financial-tools-14-0-account_lock_to_date
: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/13.0
+ :target: https://runbot.odoo-community.org/runbot/92/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -51,7 +51,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -82,6 +82,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 `_ project on GitHub.
+This module is part of the `OCA/account-financial-tools `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_lock_to_date/__manifest__.py b/account_lock_to_date/__manifest__.py
index 7c1ba7a3b..08eada2c1 100644
--- a/account_lock_to_date/__manifest__.py
+++ b/account_lock_to_date/__manifest__.py
@@ -5,11 +5,14 @@
"name": "Account Lock To Date",
"summary": """
Allows to set an account lock date in the future.""",
- "version": "13.0.1.0.1",
+ "version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools",
"installable": True,
"depends": ["account"],
- "data": ["wizards/account_update_lock_to_date.xml"],
+ "data": [
+ "security/ir.model.access.csv",
+ "wizards/account_update_lock_to_date.xml",
+ ],
}
diff --git a/account_lock_to_date/i18n/account_lock_to_date.pot b/account_lock_to_date/i18n/account_lock_to_date.pot
index 7a9c334ae..d2a8fdddc 100644
--- a/account_lock_to_date/i18n/account_lock_to_date.pot
+++ b/account_lock_to_date/i18n/account_lock_to_date.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 13.0\n"
+"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -44,22 +44,28 @@ msgid "Created on"
msgstr ""
#. module: account_lock_to_date
+#: model:ir.model.fields,field_description:account_lock_to_date.field_account_move__display_name
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__display_name
+#: model:ir.model.fields,field_description:account_lock_to_date.field_res_company__display_name
msgid "Display Name"
msgstr ""
#. module: account_lock_to_date
+#: model:ir.model.fields,field_description:account_lock_to_date.field_account_move__id
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date__id
+#: model:ir.model.fields,field_description:account_lock_to_date.field_res_company__id
msgid "ID"
msgstr ""
#. module: account_lock_to_date
#: model:ir.model,name:account_lock_to_date.model_account_move
-msgid "Journal Entries"
+msgid "Journal Entry"
msgstr ""
#. module: account_lock_to_date
+#: model:ir.model.fields,field_description:account_lock_to_date.field_account_move____last_update
#: model:ir.model.fields,field_description:account_lock_to_date.field_account_update_lock_to_date____last_update
+#: model:ir.model.fields,field_description:account_lock_to_date.field_res_company____last_update
msgid "Last Modified on"
msgstr ""
diff --git a/account_lock_to_date/security/ir.model.access.csv b/account_lock_to_date/security/ir.model.access.csv
new file mode 100644
index 000000000..7afa00518
--- /dev/null
+++ b/account_lock_to_date/security/ir.model.access.csv
@@ -0,0 +1,2 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_account_update_lock_to_date,Full access on account.update.lock_to_date,model_account_update_lock_to_date,account.group_account_invoice,1,1,1,1
diff --git a/account_lock_to_date/static/description/index.html b/account_lock_to_date/static/description/index.html
index 0a700e198..74a4ad6eb 100644
--- a/account_lock_to_date/static/description/index.html
+++ b/account_lock_to_date/static/description/index.html
@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module allows to set a Period and Fiscal year Locking end dates. This
will prevent users from posting journal entries on a date after the defined
period or fiscal year end date.
@@ -397,7 +397,7 @@ journal entries on the date “Lock To Date” or after.
Bugs are tracked on GitHub 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.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -425,7 +425,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
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 project on GitHub.
+
This module is part of the OCA/account-financial-tools project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_lock_to_date/tests/test_account_lock_to_date_update.py b/account_lock_to_date/tests/test_account_lock_to_date_update.py
index 6d0a64b23..d6bdd2c2e 100644
--- a/account_lock_to_date/tests/test_account_lock_to_date_update.py
+++ b/account_lock_to_date/tests/test_account_lock_to_date_update.py
@@ -130,7 +130,7 @@ class TestAccountLockToDateUpdate(TransactionCase):
def test_05_lock_period_with_draft_moves(self):
"""We test that we cannot change the fiscal year lock to date
- if there are draft journal entries after that date."""
+ if there are draft journal entries after that date."""
self.create_account_move("2900-02-01")
with self.assertRaises(ValidationError):
self.company.period_lock_to_date = "2900-01-01"