Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def do_partial(self, cr, uid, ids, context=None):
- res = super(stock_partial_picking, self).do_partial(cr, uid, ids, context=context)
- partial = self.browse(cr, uid, ids[0], context=context)
- qz_print_obj = self.pool.get('QzPrint')
- # Select Printable Labels products
- for wizard_line in partial.move_ids:
- #Quantiny must be Positive
- if wizard_line.quantity < 0:
- raise osv.except_osv(_('Warning!'), _('Please provide proper Quantity.'))
- # Product to print label
- if wizard_line.product_id.label_print is False:
- continue
- else:
- ## CAll print function from QzPrint class
- # Var num_cop = wizard_line.quantity
- # Var id = wizard_line.product_id.id
- label = qz_print_obj.send_epl_data(cr, uid, [wizard_line.product_id], context)
- return label
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement