title: OpenERP 6.0.4 XML Domain by Python Context List
body: <p>I've been trying to create a domain filter on an XML domain for the past few days with no positive results as yet. </p>
  
  <p>I have a field on my form tied to a function</p>
  
  <pre><code>def _return_reviewer_exempt(self, cr, uid, ids, field_name, arg, context=None):
  
      dr_obj = self.browse(cr,uid,ids,context)
      for dr in dr_obj:
          id = dr.id
      drre_obj = self.pool.get('drre').search(cr,uid,[('document','=',id)],context=context)
      result = {}
      res = list()
      i = 0
      drre_obj = self.pool.get('drre').browse(cr,uid,drre_obj,context=context)
      for drre in drre_obj:
          #boo = True
          res.append(drre.user.id)
          i += 1
      context["list_users"] = res
      result[id] = i
      return result
  </code></pre>
  
  <p>On the XML side the domain I'm attempting to create is on the field</p>
  
  <pre><code>&lt;field name="content_lead_review_id" domain="[('groups_id','=','DRLR'),'|',('id','not in',(context.get('list_users')))]" /&gt;
  </code></pre>
  
  <p>When I use a static value in my xml I see results, such as:</p>
  
  <pre><code>&lt;field name="content_lead_review_id" domain="[('groups_id','=','DRLR'),'|',('id','not in',('3'))]" /&gt;
  </code></pre>
  
  <p>This is leading me to believe that there is something wrong with the way in which the list is being generated within the XML coming from the Python Context. Can you please advise as to where I'm going wrong.</p>