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/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/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" diff --git a/setup/account_lock_to_date/odoo/addons/account_lock_to_date b/setup/account_lock_to_date/odoo/addons/account_lock_to_date new file mode 120000 index 000000000..8fd472f68 --- /dev/null +++ b/setup/account_lock_to_date/odoo/addons/account_lock_to_date @@ -0,0 +1 @@ +../../../../account_lock_to_date \ No newline at end of file diff --git a/setup/account_lock_to_date/setup.py b/setup/account_lock_to_date/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/account_lock_to_date/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)