diff --git a/account_invoice_constraint_chronology/README.rst b/account_invoice_constraint_chronology/README.rst index b85ff2ec..c02c8d8f 100644 --- a/account_invoice_constraint_chronology/README.rst +++ b/account_invoice_constraint_chronology/README.rst @@ -14,16 +14,16 @@ Account Invoice Constraint Chronology :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/14.0/account_invoice_constraint_chronology + :target: https://github.com/OCA/account-financial-tools/tree/15.0/account_invoice_constraint_chronology :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-14-0/account-financial-tools-14-0-account_invoice_constraint_chronology + :target: https://translation.odoo-community.org/projects/account-financial-tools-15-0/account-financial-tools-15-0-account_invoice_constraint_chronology :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/92/14.0 + :target: https://runbot.odoo-community.org/runbot/92/15.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module helps ensuring the chronology of invoice numbers. @@ -44,7 +44,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -82,6 +82,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_invoice_constraint_chronology/__manifest__.py b/account_invoice_constraint_chronology/__manifest__.py index c04c8529..122bfabe 100644 --- a/account_invoice_constraint_chronology/__manifest__.py +++ b/account_invoice_constraint_chronology/__manifest__.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Account Invoice Constraint Chronology", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "author": "Odoo Community Association (OCA), ACSONE SA/NV, CorporateHub", "website": "https://github.com/OCA/account-financial-tools", "license": "AGPL-3", diff --git a/account_invoice_constraint_chronology/model/account_journal.py b/account_invoice_constraint_chronology/model/account_journal.py index 993827f2..b5b70c42 100644 --- a/account_invoice_constraint_chronology/model/account_journal.py +++ b/account_invoice_constraint_chronology/model/account_journal.py @@ -12,6 +12,7 @@ class AccountJournal(models.Model): @api.onchange("type") def _onchange_type(self): - super()._onchange_type() + res = super()._onchange_type() if self.type not in ["sale", "purchase"]: self.check_chronology = False + return res diff --git a/account_invoice_constraint_chronology/static/description/index.html b/account_invoice_constraint_chronology/static/description/index.html index b26b8dbe..48bcea7e 100644 --- a/account_invoice_constraint_chronology/static/description/index.html +++ b/account_invoice_constraint_chronology/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module helps ensuring the chronology of invoice numbers.

It prevents the validation of invoices when:

    @@ -392,7 +392,7 @@ ul.auto-toc {

    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 smashing it by providing a detailed and welcomed -feedback.

    +feedback.

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

    @@ -425,7 +425,7 @@ If you spotted it first, help us smashing 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_invoice_constraint_chronology/tests/test_account_invoice_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_invoice_constraint_chronology.py index 024c1a65..56441ae1 100644 --- a/account_invoice_constraint_chronology/tests/test_account_invoice_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_invoice_constraint_chronology.py @@ -9,7 +9,7 @@ from odoo.exceptions import UserError from odoo.tests import common -class TestAccountInvoiceConstraintChronology(common.SavepointCase): +class TestAccountInvoiceConstraintChronology(common.TransactionCase): @classmethod def setUpClass(cls): super().setUpClass()