Cédric Krier pushed to branch branch/5.0 at Tryton / Tryton


Commits:
a3ad5df7 by Cédric Krier at 2023-08-02T19:09:51+02:00
Skip promotion based on categories if line has no product

Closes #12351
(grafted from ca27ba40eda89e3933e595810eab24fe25504ef7)
- - - - -
a15f1efb by Adrià Tarroja Caubet at 2023-07-05T16:32:56+02:00
Reuse cumulate per party from context as default value for general ledger line

Closes #12367
(grafted from 5a95256398af9136cab85c1ca4c4d84ae23b70ec)
- - - - -
ebb07056 by Cédric Krier at 2023-08-04T15:59:35+02:00
Discard disconnected connection from the pool

When a connection in the pool is disconnected, it stays in the pool and it may
still be served.
Using such connection raise an OperationalError and so the request is retried
but before that the connection is put back to the pool. So we may get it back
again.
It is not possible to distinct between an OperationalError due to a
disconnection or due to a isolation error for example.
So with the current design of Transaction API, an OperationalError always put
back the connection to the pool.
This main that we can only ensure that the connections served are still
connected by executing a simple query. And close connections that are failing.

Closes #12452
(grafted from f8aaf62a0c7508e3f3398e47dc2b86e6f8f06cc0)
- - - - -


3 changed files:

- modules/account/account.py
- modules/sale_promotion/sale.py
- trytond/trytond/backend/postgresql/database.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/09f22157705fcd5636795d49b753580d41a9c18d...ebb070561f3f7b287dfaaa7c39e16091a0b4e378

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/09f22157705fcd5636795d49b753580d41a9c18d...ebb070561f3f7b287dfaaa7c39e16091a0b4e378
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to