[FIX] ir_values: missing trimming of the condition (as done elsewhere).

bzr revid: vmt@openerp.com-20111003154008-k8dm2r3yhintm0ql
This commit is contained in:
Vo Minh Thu 2011-10-03 17:40:08 +02:00
parent d9b6f5e2d0
commit b04d607ec4
1 changed files with 1 additions and 1 deletions

View File

@ -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),