diff --git a/account_lock_to_date/__manifest__.py b/account_lock_to_date/__manifest__.py index 08eada2c1..10f7171fd 100644 --- a/account_lock_to_date/__manifest__.py +++ b/account_lock_to_date/__manifest__.py @@ -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", diff --git a/account_lock_to_date/models/account_move.py b/account_lock_to_date/models/account_move.py index d61cc7575..f5bfc0b83 100644 --- a/account_lock_to_date/models/account_move.py +++ b/account_lock_to_date/models/account_move.py @@ -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): 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, +)