hello i am trying to print report that is already created now i want to print that report on button through method so i am trying following but its not working
def get_assortment(self, cr, uid, ids, context=None): picking_obj = self.pool.get("stock.picking")
domain = [('assort_id', 'in', ids)]
del_order_ids= picking_obj.search(cr, uid, domain,context=context)
del_record = picking_obj.browse(cr, uid, del_order_ids, context=context)
datas = { 'active_ids': del_order_ids,
'active_model': 'stock.picking', }
return self.pool['report'].get_action(cr, uid, del_record.id, 'stock.report_picking', data=datas, context=context) // it genrates only pdf no data inside