hunk.code_window:     @api.cr_uid_ids_context
       def open_barcode_interface(self, cr, uid, picking_ids, context=None):
           final_url="/barcode/web/#action=stock.ui&picking_id="+str(picking_ids[0])
           return {'type': 'ir.actions.act_url', 'url':final_url, 'target': 'self',}
       @api.cr_uid_ids_context
       def do_partial_open_barcode(self, cr, uid, picking_ids, context=None):
           self.do_prepare_partial(cr, uid, picking_ids, context=context)
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:         final_url="/stock/barcode/#action=stock.ui&picking_id="+str(picking_ids[0])
  
hunk.file_path: addons/stock/stock.py
hunk.type: replace
file: # -*- coding: utf-8 -*-
  import logging
  
  from openerp import http
  from openerp.http import request
  
  _logger = logging.getLogger(__name__)
  
  class BarcodeController(http.Controller):
  
      @http.route(['/barcode/web/'], type='http', auth='user')
      def a(self, debug=False, **k):
          if not request.session.uid:
              return http.local_redirect('/web/login?redirect=/barcode/web')
  
          return request.render('stock.barcode_index')
  