[FIX] Fix report printing from barcode scanner
bzr revid: jco@openerp.com-20140407113331-nlrfnd2iykktnfnn
This commit is contained in:
parent
e175a4b00b
commit
511d5b6cc4
|
@ -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.<br><br><a href="http://wkhtmltopdf.org/" target="_blank">\
|
||||
wkhtmltopdf.org</a>'), 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') {
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue