summaryrefslogtreecommitdiff
path: root/odoo
diff options
context:
space:
mode:
authornie <nie@odoo.com>2020-11-12 09:24:16 +0000
committernie <nie@odoo.com>2020-11-12 09:24:16 +0000
commitf5abe6626fcd14f18cd84af7adf48f327ee9ed6d (patch)
tree877cd5a57a035dc28d429491b67db2c93d6a3b57 /odoo
parent283fd263601843d2fae73124f9d8c32eb40fd845 (diff)
[FIX] base: print modal stays open after PDF download
Steps to reproduce the bug: - Install invoicing - Create an invoice and confirm it - Click Send & Print above the invoice - Click Send & Print again in the modal Bug: The modal stays open after having downloaded the PDF Explanation: `close_on_report_download` was cleaned out here: https://github.com/odoo/odoo/blob/2fd4e48cbb673175323fb866d87e654c5c9e05ac/addons/web/controllers/main.py#L332-L337 and wasn't forwarded to the frontend. opw:2375920 closes odoo/odoo#61635 Signed-off-by: backspac <backspac@users.noreply.github.com>
Diffstat (limited to 'odoo')
-rw-r--r--odoo/addons/base/models/ir_actions_report.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/odoo/addons/base/models/ir_actions_report.py b/odoo/addons/base/models/ir_actions_report.py
index 095f7de1b73..33762e46fb4 100644
--- a/odoo/addons/base/models/ir_actions_report.py
+++ b/odoo/addons/base/models/ir_actions_report.py
@@ -149,6 +149,8 @@ class IrActionsReport(models.Model):
# expected in the route /report/<converter>/<reportname> and must
# not be removed by clean_action
"context", "data",
+ # and this one is used by the frontend later on.
+ "close_on_report_download",
}
def associated_view(self):