[MIG] account_lock_to_date: Migration to 14.0

This commit is contained in:
aromera
2022-01-10 14:57:55 +01:00
parent ef67edea64
commit d5e495e9e3
5 changed files with 15 additions and 3 deletions

View File

@@ -5,11 +5,14 @@
"name": "Account Lock To Date", "name": "Account Lock To Date",
"summary": """ "summary": """
Allows to set an account lock date in the future.""", 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", "license": "AGPL-3",
"author": "ForgeFlow, Odoo Community Association (OCA)", "author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools", "website": "https://github.com/OCA/account-financial-tools",
"installable": True, "installable": True,
"depends": ["account"], "depends": ["account"],
"data": ["wizards/account_update_lock_to_date.xml"], "data": [
"security/ir.model.access.csv",
"wizards/account_update_lock_to_date.xml",
],
} }

View File

@@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 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

View File

@@ -130,7 +130,7 @@ class TestAccountLockToDateUpdate(TransactionCase):
def test_05_lock_period_with_draft_moves(self): def test_05_lock_period_with_draft_moves(self):
"""We test that we cannot change the fiscal year lock to date """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") self.create_account_move("2900-02-01")
with self.assertRaises(ValidationError): with self.assertRaises(ValidationError):
self.company.period_lock_to_date = "2900-01-01" self.company.period_lock_to_date = "2900-01-01"

View File

@@ -0,0 +1 @@
../../../../account_lock_to_date

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)