diff --git a/account_journal_lock_date/README.rst b/account_journal_lock_date/README.rst index 20ab022df..33965e78c 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/16.0/account_journal_lock_date + :target: https://github.com/OCA/account-financial-tools/tree/17.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-16-0/account-financial-tools-16-0-account_journal_lock_date + :target: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-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=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -34,7 +34,8 @@ 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. This module also adds a wizard that allows you to update the 'Lock Date' -and the 'Lock Date for Non-Advisers' for several Journals at the same time. +and the 'Lock Date for Non-Advisers' for several Journals at the same +time. **Table of contents** @@ -46,29 +47,30 @@ Configuration To configure this module, you need to: -#. Go to *Invoicing > Configuration > Journals* -#. Open a Journal and set the 'Lock Date' and the 'Lock Date for Non-Advisers' - in the' Advanced Settings' tab of the form view or select several - Journals in the list view and click on the action menu +1. Go to *Invoicing > Configuration > Journals* +2. Open a Journal and set the 'Lock Date' and the 'Lock Date for + Non-Advisers' in the' Advanced Settings' tab of the form view or + select several Journals in the list view and click on the action menu 'Update journals lock dates' to update those dates for the selected journals at the same time. Usage ===== -If the logged-in user has the access group 'Adviser', he/she will -not be able to create a journal entry if the 'Lock Date' of the -journal is greater than or equal to the journal entry. +If the logged-in user has the access group 'Adviser', he/she will not be +able to create a journal entry if the 'Lock Date' of the journal is +greater than or equal to the journal entry. If the logged-in user has not the access group 'Adviser', he/she will -not be able to create a journal entry if the 'Lock Date for Non-Advisers' -of the journal is greater than or equal to the journal entry. +not be able to create a journal entry if the 'Lock Date for +Non-Advisers' of the journal is greater than or equal to the journal +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 =========== @@ -76,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. @@ -84,32 +86,32 @@ Credits ======= Authors -~~~~~~~ +------- * ACSONE SA/NV * Tecnativa 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 Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -121,6 +123,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/models/account_journal.py b/account_journal_lock_date/models/account_journal.py index 2e427a25d..2cae31b86 100644 --- a/account_journal_lock_date/models/account_journal.py +++ b/account_journal_lock_date/models/account_journal.py @@ -5,7 +5,6 @@ from odoo import fields, models class AccountJournal(models.Model): - _inherit = "account.journal" fiscalyear_lock_date = fields.Date( diff --git a/account_journal_lock_date/models/account_move.py b/account_journal_lock_date/models/account_move.py index 3e86d25d3..325b5f682 100644 --- a/account_journal_lock_date/models/account_move.py +++ b/account_journal_lock_date/models/account_move.py @@ -7,7 +7,6 @@ from odoo.tools.misc import format_date class AccountMove(models.Model): - _inherit = "account.move" def _check_fiscalyear_lock_date(self): diff --git a/account_journal_lock_date/pyproject.toml b/account_journal_lock_date/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_journal_lock_date/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_journal_lock_date/readme/CONFIGURE.md b/account_journal_lock_date/readme/CONFIGURE.md new file mode 100644 index 000000000..7a020c9a0 --- /dev/null +++ b/account_journal_lock_date/readme/CONFIGURE.md @@ -0,0 +1,8 @@ +To configure this module, you need to: + +1. Go to *Invoicing \> Configuration \> Journals* +2. Open a Journal and set the 'Lock Date' and the 'Lock Date for + Non-Advisers' in the' Advanced Settings' tab of the form view or + select several Journals in the list view and click on the action + menu 'Update journals lock dates' to update those dates for the + selected journals at the same time. diff --git a/account_journal_lock_date/readme/CONFIGURE.rst b/account_journal_lock_date/readme/CONFIGURE.rst deleted file mode 100644 index 304673ab9..000000000 --- a/account_journal_lock_date/readme/CONFIGURE.rst +++ /dev/null @@ -1,8 +0,0 @@ -To configure this module, you need to: - -#. Go to *Invoicing > Configuration > Journals* -#. Open a Journal and set the 'Lock Date' and the 'Lock Date for Non-Advisers' - in the' Advanced Settings' tab of the form view or select several - Journals in the list view and click on the action menu - 'Update journals lock dates' to update those dates for the selected - journals at the same time. diff --git a/account_journal_lock_date/readme/CONTRIBUTORS.md b/account_journal_lock_date/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..3577f3785 --- /dev/null +++ b/account_journal_lock_date/readme/CONTRIBUTORS.md @@ -0,0 +1,10 @@ +- [Akretion](https://www.akretion.com): + - Benoît GUILLOT \<\> + - Chafique DELLI \<\> + - Alexis de Lattre \<\> + - Mourad EL HADJ MIMOUNE \<\> +- [Tecnativa](https://www.tecnativa.com): + - Pedro M. Baeza + - Ernesto Tejeda +- [Factor Libre](https://www.factorlibre.com): + - Rodrigo Bonilla Martinez \<\> diff --git a/account_journal_lock_date/readme/CONTRIBUTORS.rst b/account_journal_lock_date/readme/CONTRIBUTORS.rst deleted file mode 100644 index b58874abb..000000000 --- a/account_journal_lock_date/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,15 +0,0 @@ -* `Akretion `_: - - * Benoît GUILLOT - * Chafique DELLI - * Alexis de Lattre - * Mourad EL HADJ MIMOUNE - -* `Tecnativa `_: - - * Pedro M. Baeza - * Ernesto Tejeda - -* `Factor Libre `_: - - * Rodrigo Bonilla Martinez diff --git a/account_journal_lock_date/readme/DESCRIPTION.rst b/account_journal_lock_date/readme/DESCRIPTION.md similarity index 96% rename from account_journal_lock_date/readme/DESCRIPTION.rst rename to account_journal_lock_date/readme/DESCRIPTION.md index 51cdc34e5..abe9c2914 100644 --- a/account_journal_lock_date/readme/DESCRIPTION.rst +++ b/account_journal_lock_date/readme/DESCRIPTION.md @@ -4,4 +4,5 @@ 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. This module also adds a wizard that allows you to update the 'Lock Date' -and the 'Lock Date for Non-Advisers' for several Journals at the same time. +and the 'Lock Date for Non-Advisers' for several Journals at the same +time. diff --git a/account_journal_lock_date/readme/ROADMAP.md b/account_journal_lock_date/readme/ROADMAP.md new file mode 100644 index 000000000..24a7c2b5f --- /dev/null +++ b/account_journal_lock_date/readme/ROADMAP.md @@ -0,0 +1,2 @@ +- the module does not check that all moves prior the lock date are + posted, this could be made as part of the wizard diff --git a/account_journal_lock_date/readme/ROADMAP.rst b/account_journal_lock_date/readme/ROADMAP.rst deleted file mode 100644 index e1c0bfa04..000000000 --- a/account_journal_lock_date/readme/ROADMAP.rst +++ /dev/null @@ -1,2 +0,0 @@ -* the module does not check that all moves prior the lock date are posted, this could be - made as part of the wizard diff --git a/account_journal_lock_date/readme/USAGE.md b/account_journal_lock_date/readme/USAGE.md new file mode 100644 index 000000000..d8990ffca --- /dev/null +++ b/account_journal_lock_date/readme/USAGE.md @@ -0,0 +1,8 @@ +If the logged-in user has the access group 'Adviser', he/she will not be +able to create a journal entry if the 'Lock Date' of the journal is +greater than or equal to the journal entry. + +If the logged-in user has not the access group 'Adviser', he/she will +not be able to create a journal entry if the 'Lock Date for +Non-Advisers' of the journal is greater than or equal to the journal +entry. diff --git a/account_journal_lock_date/readme/USAGE.rst b/account_journal_lock_date/readme/USAGE.rst deleted file mode 100644 index 4e0e74e96..000000000 --- a/account_journal_lock_date/readme/USAGE.rst +++ /dev/null @@ -1,7 +0,0 @@ -If the logged-in user has the access group 'Adviser', he/she will -not be able to create a journal entry if the 'Lock Date' of the -journal is greater than or equal to the journal entry. - -If the logged-in user has not the access group 'Adviser', he/she will -not be able to create a journal entry if the 'Lock Date for Non-Advisers' -of the journal is greater than or equal to the journal entry. diff --git a/account_journal_lock_date/static/description/index.html b/account_journal_lock_date/static/description/index.html index bf5102961..ef23279ec 100644 --- a/account_journal_lock_date/static/description/index.html +++ b/account_journal_lock_date/static/description/index.html @@ -369,12 +369,13 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:de6ca1ab6d2fa831b79721ddb7431eb213da77e8a2c701d157964ef58c224205 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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.

This module also adds a wizard that allows you to update the ‘Lock Date’ -and the ‘Lock Date for Non-Advisers’ for several Journals at the same time.

+and the ‘Lock Date for Non-Advisers’ for several Journals at the same +time.

Table of contents

    @@ -395,27 +396,28 @@ and the ‘Lock Date for Non-Advisers’ for several Journals at the same time.<

    To configure this module, you need to:

    1. Go to Invoicing > Configuration > Journals
    2. -
    3. Open a Journal and set the ‘Lock Date’ and the ‘Lock Date for Non-Advisers’ -in the’ Advanced Settings’ tab of the form view or select several -Journals in the list view and click on the action menu +
    4. Open a Journal and set the ‘Lock Date’ and the ‘Lock Date for +Non-Advisers’ in the’ Advanced Settings’ tab of the form view or +select several Journals in the list view and click on the action menu ‘Update journals lock dates’ to update those dates for the selected journals at the same time.

Usage

-

If the logged-in user has the access group ‘Adviser’, he/she will -not be able to create a journal entry if the ‘Lock Date’ of the -journal is greater than or equal to the journal entry.

+

If the logged-in user has the access group ‘Adviser’, he/she will not be +able to create a journal entry if the ‘Lock Date’ of the journal is +greater than or equal to the journal entry.

If the logged-in user has not the access group ‘Adviser’, he/she will -not be able to create a journal entry if the ‘Lock Date for Non-Advisers’ -of the journal is greater than or equal to the journal entry.

+not be able to create a journal entry if the ‘Lock Date for +Non-Advisers’ of the journal is greater than or equal to the journal +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
@@ -423,7 +425,7 @@ made as part of the wizard

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.

@@ -463,7 +465,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

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/tests/test_journal_lock_date.py b/account_journal_lock_date/tests/test_journal_lock_date.py index c165f8c43..0c3c15da1 100644 --- a/account_journal_lock_date/tests/test_journal_lock_date.py +++ b/account_journal_lock_date/tests/test_journal_lock_date.py @@ -12,7 +12,7 @@ from odoo.addons.account.tests import common @tagged("post_install", "-at_install") class TestJournalLockDate(common.AccountTestInvoicingCommon): def setUp(self): - super(TestJournalLockDate, self).setUp() + super().setUp() self.account_move_obj = self.env["account.move"] self.account_move_line_obj = self.env["account.move.line"] self.company_id = self.ref("base.main_company")