When synchronize moves, the origin of outgoing is updated to point the
new incoming move instead of the original one.
Closes#12272
(grafted from f36f6212c3596d5860722535adc80349496d07be)
--HG--
branch : 6.0
When synchronize inventory to outgoing moves, the origin of the inventory is
updated to point to the new corresponding outgoing move instead of the
original one.
Closes#12272
(grafted from 72fbac94b52006eaa854786b60aa1faf1a2c8d48)
--HG--
branch : 6.0
ed41959390ff added a synchronization on assign to prevent infinite warning
loop on pack if it creates new move without origin.
But 38e2a76db719 refactoring lost this behavior.
Closes#12503
(grafted from 903204d5d1728e818ec44bf5aa0a629c2efd1a65)
--HG--
branch : 6.0
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