title: debug in openerp6.1
body: <p>I have added the following code in sale.py but I am unable to see output of print in
  server.log. I wish to fill a one2many field by returned list of this function</p>
  
  <h2>I am using openerp6.1 under windows xp</h2>
  
  <h2>my code is</h2>
  
  <pre><code> def model_id_change(self,cr,uid,ids,model_id,context=None):
  
          list1=[]
  
          if context is None:
  
              context = {}
  
          print "Hi"
  
          print str(model_id)
  
          if not model_id:
  
              raise osv.except_osv(_('No Model Selected !'),_('You have to select Model.'))
  
          querystr = 'SELECT microswitch FROM product_model WHERE id = ' + model_id
  
          print querystr
  
          try:
  
              cr.execute(querystr)
  
              s=cr.fetchone()
  
              print s
  
              list1=[]
              print list1
  
              for t in s.split(','):
  
                  if t:
  
                      list1.append(t)
  
          except:
  
              exceptionType, exceptionValue, exceptionTraceback = sys.exc_info()
  
          return(list1)
  </code></pre>