[FIX] ir_values: try to evaluate the given expression before saving it in pickle...
authorMartin Trigaux <mat@openerp.com>
Fri, 9 May 2014 13:04:12 +0000 (15:04 +0200)
committerMartin Trigaux <mat@openerp.com>
Fri, 9 May 2014 13:04:12 +0000 (15:04 +0200)
commitb87db84c0d77dbb3d9117dd2e5443eb864e2b9de
treef1170d8d06f33349b9624924193002549a112c75
parent3a0b63942e685cc1908d968064728da3e30be350
parent1aaebff05fa0f90d27c15afdf58b7fb5ebda4f6d
[FIX] ir_values: try to evaluate the given expression before saving it in pickle form (opw 607398)

The value_unpickled given by xml data is usualy already evaluated but when it is given by the web client, a str is recieved by the method (as the field is a text field). In the later case, we need to evaluate the field before storing to be correctly evaluated as a default value.

bzr revid: mat@openerp.com-20140509130412-ki211x7qdccdnv5w
openerp/addons/base/ir/ir_values.py