Revert 3dec090 "[FIX] ir_values: fallback when no condition"
authorMartin Trigaux <mat@openerp.com>
Mon, 28 Jul 2014 12:35:44 +0000 (14:35 +0200)
committerMartin Trigaux <mat@openerp.com>
Mon, 28 Jul 2014 12:35:44 +0000 (14:35 +0200)
commitcd013aa09a780291931323430f0c3c97ea6ab55d
tree1ad040ce62d7407654a1cabae697f7a00ffd4601
parent3fe508f200963122f1ee61072516c84b2022aa48
Revert 3dec090 "[FIX] ir_values: fallback when no condition"

An ir.value without condition should not match when searching with a condition.
When a field with change_default on it is modified, the method get_defaults is called with the new value. This means that manually modifying a field with this trigger would put back the default value (opw 611193).
openerp/addons/base/ir/ir_values.py