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 15.0
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"name": "Account Lock To Date",
|
||||
"summary": """
|
||||
Allows to set an account lock date in the future.""",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "15.0.1.0.0",
|
||||
"license": "AGPL-3",
|
||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/account-financial-tools",
|
||||
|
||||
@@ -10,8 +10,8 @@ class AccountMove(models.Model):
|
||||
def _check_lock_to_dates(self):
|
||||
"""Prevent moves that are on or after lock to date.
|
||||
|
||||
Advisors have more freedom then other users and are only constrained
|
||||
by the ficalyear_lock_to_date.
|
||||
Advisors have more freedom than other users and are only constrained
|
||||
by the fiscalyear_lock_to_date.
|
||||
Other users will also be restricted by the period_lock_to_date.
|
||||
"""
|
||||
is_advisor = self.user_has_groups("account.group_account_manager")
|
||||
@@ -31,14 +31,14 @@ class AccountMove(models.Model):
|
||||
message = _(
|
||||
"You cannot add/modify entries after and "
|
||||
"inclusive of the lock to date %s"
|
||||
) % (lock_to_date)
|
||||
) % (lock_to_date,)
|
||||
else:
|
||||
message = _(
|
||||
"You cannot add/modify entries after and "
|
||||
"inclusive of the lock to date %s. "
|
||||
"Check the company settings or ask someone "
|
||||
"with the 'Adviser' role"
|
||||
) % (lock_to_date)
|
||||
) % (lock_to_date,)
|
||||
raise ValidationError(message)
|
||||
|
||||
def action_post(self):
|
||||
|
||||
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