[FIX] ir_values: missing trimming of the condition (as done elsewhere).
bzr revid: vmt@openerp.com-20111003154008-k8dm2r3yhintm0ql
This commit is contained in:
parent
d9b6f5e2d0
commit
b04d607ec4
|
@ -233,7 +233,7 @@ class ir_values(osv.osv):
|
|||
# remove existing defaults for the same scope
|
||||
search_criteria = [
|
||||
('key', '=', 'default'),
|
||||
('key2', '=', condition),
|
||||
('key2', '=', condition and condition[:200]),
|
||||
('model', '=', model),
|
||||
('name', '=', field_name),
|
||||
('user_id', '=', False if for_all_users else uid),
|
||||
|
|
Loading…
Reference in New Issue