diff --git a/addons/report/static/src/js/qwebactionmanager.js b/addons/report/static/src/js/qwebactionmanager.js index dac8dcacf25..e7222330ebb 100644 --- a/addons/report/static/src/js/qwebactionmanager.js +++ b/addons/report/static/src/js/qwebactionmanager.js @@ -64,7 +64,7 @@ openerp.report = function(instance) { self.do_notify(_t('Report'), _t('Unable to find Wkhtmltopdf on this \ system. The report will be shown in html.

\ wkhtmltopdf.org'), true); - window.open(report_url.substring(12), '_blank', 'height=768,width=1024'); + window.open(report_url.substring(11), '_blank', 'height=768,width=1024'); instance.web.unblockUI(); } else { if (presence == 'upgrade') { diff --git a/addons/stock/stock.py b/addons/stock/stock.py index a33bf67f586..6bb3f3f0bfc 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -839,6 +839,8 @@ class stock_picking(osv.osv): def do_print_picking(self, cr, uid, ids, context=None): '''This function prints the picking list''' + context = context or {} + context['active_ids'] = ids return self.pool.get("report").get_action(cr, uid, ids, 'stock.report_picking', context=context) def action_confirm(self, cr, uid, ids, context=None):