mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[MIG] account_lock_to_date: Migration to 14.0
This commit is contained in:
@@ -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",
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
2
account_lock_to_date/security/ir.model.access.csv
Normal file
2
account_lock_to_date/security/ir.model.access.csv
Normal 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
|
||||||
|
@@ -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"
|
||||||
|
|||||||
1
setup/account_lock_to_date/odoo/addons/account_lock_to_date
Symbolic link
1
setup/account_lock_to_date/odoo/addons/account_lock_to_date
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../../account_lock_to_date
|
||||||
6
setup/account_lock_to_date/setup.py
Normal file
6
setup/account_lock_to_date/setup.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user