diff --git a/account_move_name_sequence/README.rst b/account_move_name_sequence/README.rst index 3d038f67a..83ecd74c6 100644 --- a/account_move_name_sequence/README.rst +++ b/account_move_name_sequence/README.rst @@ -7,7 +7,7 @@ Account Move Number Sequence !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:3afe6316cda51964c0745fadd7bf028ba9a478aaa5b193d9adedd793ba3bc0b3 + !! source digest: sha256:c1d07b9193af5e79dba57128500d43c3fc7e5aba05233d305bc0cf8caf9e6806 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/account_move_name_sequence/static/description/index.html b/account_move_name_sequence/static/description/index.html index c87f69475..60834982f 100644 --- a/account_move_name_sequence/static/description/index.html +++ b/account_move_name_sequence/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:3afe6316cda51964c0745fadd7bf028ba9a478aaa5b193d9adedd793ba3bc0b3 +!! source digest: sha256:c1d07b9193af5e79dba57128500d43c3fc7e5aba05233d305bc0cf8caf9e6806 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
In Odoo version 13.0 and previous versions, the number of journal entries was generated from a sequence configured on the journal.
diff --git a/account_move_name_sequence/tests/test_sequence_concurrency.py b/account_move_name_sequence/tests/test_sequence_concurrency.py index 7f7c7cc45..4dcd56fe7 100644 --- a/account_move_name_sequence/tests/test_sequence_concurrency.py +++ b/account_move_name_sequence/tests/test_sequence_concurrency.py @@ -23,11 +23,12 @@ class ThreadRaiseJoin(threading.Thread): self.exc = e def join(self, *args, **kwargs): - super().join(*args, **kwargs) + res = super().join(*args, **kwargs) # raise exception in the join # to raise it in the main thread if self.exc: raise self.exc + return res @tagged("post_install", "-at_install", "test_move_sequence") @@ -99,9 +100,7 @@ class TestSequenceConcurrency(TransactionCase): env = api.Environment(cr, SUPERUSER_ID, {}) cr_pid = cr.connection.get_backend_pid() # Avoid waiting for a long time and it needs to be less than deadlock - cr.execute( - "SET LOCAL statement_timeout = '%ss'", (deadlock_timeout + 10,) - ) + cr.execute("SET LOCAL statement_timeout = '%ss'", (deadlock_timeout + 10,)) if payment_first: _logger.info("Creating payment cr %s", cr_pid) self._create_payment_form(