[FIX] ir.values.get_defaults: typo in SQL query - spotted by Naresh, thanks!

bzr revid: odo@openerp.com-20110908113833-z2cgkj093940usys
This commit is contained in:
Olivier Dony
2011-09-08 13:38:33 +02:00
parent ef5edae1ca
commit fbb6e5e56a
+2 -2
View File
@@ -284,8 +284,8 @@ class ir_values(osv.osv):
LEFT JOIN res_users u ON (v.user_id = u.id)
WHERE v.key = %%s AND v.model = %%s
AND (v.user_id = %%s OR v.user_id IS NULL)
AND (u.company_id IS NULL OR
u.company_id =
AND (v.company_id IS NULL OR
v.company_id =
(SELECT company_id from res_users where id = %%s)
)
%s