diff --git a/account_journal_lock_date/README.rst b/account_journal_lock_date/README.rst index f8aae362060..3f6227c3fd1 100644 --- a/account_journal_lock_date/README.rst +++ b/account_journal_lock_date/README.rst @@ -17,13 +17,13 @@ Account Journal Lock Date :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github - :target: https://github.com/OCA/account-financial-tools/tree/17.0/account_journal_lock_date + :target: https://github.com/OCA/account-financial-tools/tree/18.0/account_journal_lock_date :alt: OCA/account-financial-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_journal_lock_date + :target: https://translation.odoo-community.org/projects/account-financial-tools-18-0/account-financial-tools-18-0-account_journal_lock_date :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -69,8 +69,8 @@ entry. Known issues / Roadmap ====================== -- the module does not check that all moves prior the lock date are - posted, this could be made as part of the wizard +- the module does not check that all moves prior the lock date are + posted, this could be made as part of the wizard Bug Tracker =========== @@ -78,7 +78,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -94,21 +94,23 @@ Authors Contributors ------------ -- `Akretion `__: +- `Akretion `__: - - Benoît GUILLOT - - Chafique DELLI - - Alexis de Lattre - - Mourad EL HADJ MIMOUNE + - Benoît GUILLOT + - Chafique DELLI + - Alexis de Lattre + - Mourad EL HADJ MIMOUNE -- `Tecnativa `__: +- `Tecnativa `__: - - Pedro M. Baeza - - Ernesto Tejeda + - Pedro M. Baeza + - Ernesto Tejeda -- `Factor Libre `__: +- `Factor Libre `__: - - Rodrigo Bonilla Martinez + - Rodrigo Bonilla Martinez + +- ``Heliconia Solutions Pvt. Ltd. ``\ \_ Maintainers ----------- @@ -123,6 +125,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/account-financial-tools `_ project on GitHub. +This module is part of the `OCA/account-financial-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_journal_lock_date/__manifest__.py b/account_journal_lock_date/__manifest__.py index 4c5ec77d65b..8849aac9c65 100644 --- a/account_journal_lock_date/__manifest__.py +++ b/account_journal_lock_date/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Journal Lock Date", "summary": "Lock each journal independently", - "version": "17.0.1.0.0", + "version": "18.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-financial-tools", diff --git a/account_journal_lock_date/models/account_move.py b/account_journal_lock_date/models/account_move.py index 325b5f682a8..e1119bb1bf8 100644 --- a/account_journal_lock_date/models/account_move.py +++ b/account_journal_lock_date/models/account_move.py @@ -9,14 +9,14 @@ class AccountMove(models.Model): _inherit = "account.move" - def _check_fiscalyear_lock_date(self): - res = super()._check_fiscalyear_lock_date() + def _check_fiscal_lock_dates(self): + res = super()._check_fiscal_lock_dates() if self.env.context.get("bypass_journal_lock_date"): return res date_min = fields.date.min for move in self: - if self.user_has_groups("account.group_account_manager"): + if self.env.user.has_group("account.group_account_manager"): lock_date = move.journal_id.fiscalyear_lock_date or date_min else: lock_date = max( @@ -25,7 +25,7 @@ def _check_fiscalyear_lock_date(self): ) if move.date <= lock_date: lock_date = format_date(self.env, lock_date) - if self.user_has_groups("account.group_account_manager"): + if self.env.user.has_group("account.group_account_manager"): message = _( "You cannot add/modify entries for the journal '%(journal)s' " "prior to and inclusive of the lock date %(journal_date)s" diff --git a/account_journal_lock_date/readme/CONTRIBUTORS.md b/account_journal_lock_date/readme/CONTRIBUTORS.md index 3577f3785b2..da18ba2b24b 100644 --- a/account_journal_lock_date/readme/CONTRIBUTORS.md +++ b/account_journal_lock_date/readme/CONTRIBUTORS.md @@ -8,3 +8,4 @@ - Ernesto Tejeda - [Factor Libre](https://www.factorlibre.com): - Rodrigo Bonilla Martinez \<\> +- `Heliconia Solutions Pvt. Ltd. `_ diff --git a/account_journal_lock_date/static/description/index.html b/account_journal_lock_date/static/description/index.html index dced55dd18d..762aa696d6f 100644 --- a/account_journal_lock_date/static/description/index.html +++ b/account_journal_lock_date/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -368,7 +369,7 @@

Account Journal Lock Date

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:cd335b11f1bbc561bf62345e5d9d1c702a74199b7dd180df5da89d7be2e42346 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runboat

Lock each accounting journal independently.

In addition to the lock dates provided by standard Odoo, this module provides a ‘Lock Date’ and a ‘Lock Date for Non-Advisers’ per journal.

@@ -424,7 +425,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -455,16 +456,19 @@

Contributors

  • Rodrigo Bonilla Martinez <rodrigo.bonilla@factorlibre.com>
  • +
  • Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>_
  • Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +Odoo Community Association +

    OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

    -

    This module is part of the OCA/account-financial-tools project on GitHub.

    +

    This module is part of the OCA/account-financial-tools project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.