Files
odoo_source/addons
william-andre 19867cc330 [FIX] account: make import of discounts thread safe
The patch method is not thread safe, which is very annoying for SH users
for instance.

One obvious issue is that during one thread patching the method, other
threads will also be impacted and have 100 decimal places for the
discount.
But it is even worse:
* thread A start: original = real_original; new = patchedA
* thread B start: original = patchedA; new = patchedB
* thread A end: reset original to real_original
* thread B end: reset original to patchedA

Now at the end of the transaction, the original method simply doesn't
exist anymore, and we only have one of the patches, which forces a
restart of the server to fix it.

opw-3552839

closes odoo/odoo#152168

X-original-commit: 9239ee3a95b474ce2eea92747b64f17f58c5c4cc
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2024-02-05 18:24:40 +00:00
..
2024-01-26 09:13:04 +00:00
2024-02-05 12:20:56 +00:00
2024-01-15 09:30:53 +00:00
2024-01-26 09:13:03 +00:00