[FIX] ir.values: get_defaults() should cut the condition at 200 chars to match the conditions that were set
bzr revid: odo@openerp.com-20110902151442-rqrh62z67g8k921o
This commit is contained in:
@@ -271,7 +271,7 @@ class ir_values(osv.osv):
|
||||
query = query % ('AND v.key2 = %s' if condition else '')
|
||||
params = ('default', model, uid, uid)
|
||||
if condition:
|
||||
params += (condition,)
|
||||
params += (condition[:200],)
|
||||
cr.execute(query, params)
|
||||
|
||||
# keep only the highest priority default for each field
|
||||
|
||||
Reference in New Issue
Block a user