mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_move_name_sequence: pre-commit auto fixes
This commit is contained in:
parent
36661a13ae
commit
b15dbdd723
@@ -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
|
||||
|
||||
@@ -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
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-tools/tree/15.0/account_move_name_sequence"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-15-0/account-financial-tools-15-0-account_move_name_sequence"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>In Odoo version 13.0 and previous versions, the number of journal entries was generated from a sequence configured on the journal.</p>
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user