summaryrefslogtreecommitdiff
path: root/setup/package.dfsrc
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2016-06-08 10:53:54 +0200
committerSimon Lejeune <sle@openerp.com>2016-06-10 11:26:01 +0200
commit02484f899a2b8201d0313531015273e8bdbf5ede (patch)
tree84748ccbeddb4f48ee509b3e5b00fd90d85b4bed /setup/package.dfsrc
parentd6e93d063b2fc630c3fb9db6c52e9656d8410cff (diff)
[FIX] report: thread-safe barcode generation
A lock occurs when the user wants to print a report having multiple barcode while the server is started in threaded-mode. The reason is that reportlab has to build a cache of the T1 fonts before rendering a barcode (done in a C extension) and this part is not thread safe. We attempt here to init the T1 fonts cache at the start-up of Odoo so that rendering of barcode in multiple thread does not lock the server. Another workaround was to set an explicit lock around the reportlab's function call, but it's more dangerous as it may introduce undetectable lock between python and postgresql. Thanks to @odony and @KangOl. Fixes #12236
Diffstat (limited to 'setup/package.dfsrc')
0 files changed, 0 insertions, 0 deletions