title: How to modify the default value of a property field in Odoo 8?
body: <p>I am trying to modify the default value of the Sale Pricelist of a partner (field <code>property_product_pricelist</code>, tab <em>Sales &amp; Purchases</em>, model <code>res.partner</code>). It seems that this default value was introduced via XML (since that field is of type <em>property</em>), adding a record to the <code>ir.property</code> model:</p>
  
  <pre><code>&lt;record id="list0" model="product.pricelist"&gt;
      &lt;field name="name"&gt;Public Pricelist&lt;/field&gt;
      &lt;field name="type"&gt;sale&lt;/field&gt;
  &lt;/record&gt;
  &lt;record id="ver0" model="product.pricelist.version"&gt;
      &lt;field name="pricelist_id" ref="list0"/&gt;
      &lt;field name="name"&gt;Default Public Pricelist Version&lt;/field&gt;
  &lt;/record&gt;
  &lt;record id="item0" model="product.pricelist.item"&gt;
      &lt;field name="price_version_id" ref="ver0"/&gt;
      &lt;field name="base" ref="list_price"/&gt;
      &lt;field name="sequence"&gt;1000&lt;/field&gt;
      &lt;field name="name"&gt;Default Public Pricelist Line&lt;/field&gt;
  &lt;/record&gt;
  
  &lt;!--
  Property
  --&gt;
  &lt;record forcecreate="True" id="property_product_pricelist" model="ir.property"&gt;
      &lt;field name="name"&gt;property_product_pricelist&lt;/field&gt;
      &lt;field name="fields_id" search="[('model','=','res.partner'),('name','=','property_product_pricelist')]"/&gt;
      &lt;field eval="'product.pricelist,'+str(ref('list0'))" name="value"/&gt;
  &lt;/record&gt;
  </code></pre>
  
  <p>So I guess (I did not try it) that if you modify this XML record, you will change the default value, for example:</p>
  
  <pre><code>&lt;record forcecreate="True" id="product.property_product_pricelist" model="ir.property"&gt;
      &lt;field name="name"&gt;property_product_pricelist&lt;/field&gt;
      &lt;field name="fields_id" search="[('model','=','res.partner'),('name','=','property_product_pricelist')]"/&gt;
      &lt;field eval="'product.pricelist,'+str(ref('my_default_pricelist'))" name="value"/&gt;
  &lt;/record&gt;
  </code></pre>
  
  <p>The problem is that I want to introduce different default values depending  on other field (<code>user_id</code>). I mean, if <code>user_id</code> is the <code>res.users</code> with ID <em>1</em>, I want the <em>Public Pricelist</em> as the default pricelist, otherwise, I want the pricelist created by me (<code>my_default_pricelist</code>) as the default one.</p>
  
  <p>Can anyone help me, please?</p>