diff --git a/addons/product/wizard/product_label_layout.py b/addons/product/wizard/product_label_layout.py index 2fc90fe61e9..02279546444 100644 --- a/addons/product/wizard/product_label_layout.py +++ b/addons/product/wizard/product_label_layout.py @@ -67,4 +67,6 @@ class ProductLabelLayout(models.TransientModel): xml_id, data = self._prepare_report_data() if not xml_id: raise UserError(_('Unable to find report template for %s format', self.print_format)) - return self.env.ref(xml_id).report_action(None, data=data) + report_action = self.env.ref(xml_id).report_action(None, data=data) + report_action.update({'close_on_report_download': True}) + return report_action