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)
--HG--
branch : 6.0
The cost price on stock move is only required by validation so we can not
ensure over time that all the stock moves selected have a cost price.
Closes#12468
(grafted from adea1ec5dd32ec8f1a353a6f3105b82707485914)
--HG--
branch : 6.0
This is needed ensure that at least one line to pay of the invoice is
reconciled.
The lines and payment lines are also shown for overpayment.
Closes#12403
(grafted from 72345bf646caff0e1aa9c373a68906270fe7b688)
--HG--
branch : 6.0
When synchronize the outgoing or incoming move, the secondary unit must be
copied from the template.
Closes#12301
(grafted from b190ea97bd1a2040686ed6c9565ac20c45c529f4)
--HG--
branch : 6.0
The rule must be enforced also when only non SQL type fields are read.
Closes#12428
(grafted from bd69f1025bca6648fd9ff11f585a60214d2bbf6e)
--HG--
branch : 6.0
If wrong variables are used to call gettext, the formatting may raise a
ValueError. It is better to not fail for such minor error when not testing.
Closes#12371
(grafted from 47809a507263c47b927c318750f22499adecd036)
--HG--
branch : 6.0
A call to clear_all is required after the commit in order to ensure that the
transaction uses an empty cache from this point. clear_all is not required to
prevent the deadlock on ir.cache because the rollback ensures that nothing
changed from the point of view of this transaction.
Close#12343
(grafted from 48396d9cfed6caccb3fca6d981fec5016a1f6ca2)
--HG--
branch : 6.0
When exporting data of a xxx2Many field, the column to skip should be based on
the child field names instead of the exported value (which can be 0 for
example).
Closes#12316
(grafted from a91e1a9f95ca2b22d4ce5372b1753999d03aa8af)
--HG--
branch : 6.0
The focus out of child widgets must call focus out method.
And we need to connect to the datetime-changed event as DateTime does not call
the __init__ method of Date.
Closes#12020
(grafted from 62934f0e75525d65719bcc83f750d5e9070e4632)
--HG--
branch : 6.0
User application request has an Authorization header so an Authorization
instance is returned but it can not be used for login.
Closes#12312
(grafted from 0a4e13728c0a9bb24536cb1033d95ca6749a2b9d)
--HG--
branch : 6.0