summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-06-27 10:50:47 +0200
committerNicolas Lempereur <nle@odoo.com>2018-06-27 13:21:13 +0200
commitf52a5a72555de8f29978ea20848d6e3226b6ee67 (patch)
treebcde031f566c1d005051251308e0c64136327231 /addons/web/static/src/js/views/basic
parentc7247c07b6cba78d6c980e1da160c2535a2b7073 (diff)
[FIX] base: print multi record report no outlines
In b446930dc there has been a number of changes in report to improve performances. In one of these change, printing several documents with result such as: ``` <div class="article"><h1><span data-oe-model="mymodel" data-oe-id="1" data-oe-field="myfield" /></h1></div> <div class="article"><h1><span data-oe-model="mymodel" data-oe-id="3" data-oe-field="myfield" /></h1></div> ``` The system will know it is rendering 2 mymodel records (with IDs: 1, 3) and will try from the document to determines what part (called "outlines") of the PDF corresponds to these IDs. This is done by splitting the document over semantical delimitations such as h1, h2, *. If all is fine: each part of the PDF will be saved for each record, so if we print records 1 and 3 they will be saved separately and will be possibly used as is the next time they are to be printed. But in the instance of printing a report which has: - field that are displayed, - several records printed at the same time, - save and getting document back from attachment enabled, - no h1 or other semantic delimitation The matching of part of PDF and outlines can't be done since there is no outlines, this was not expected by the code and caused an error. With this change, if there is no outline each part of the PDF will not be saved as attachment. opw-1856469 closes #25496
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions