Fix typo for issue138

This commit is contained in:
Cédric Krier committed 2008-06-18 16:59:36 +02:00
1 parent 620c0d3f54
commit ccce3c85de
1 file changed
+2 -2
+2 -2
View File
@@ -83,12 +83,12 @@ class Product(OSV):
while i < len(args):
if args[i][0] == '_employee':
if not args[i][2]:
args[i] = ('id', '==', '0')
args[i] = ('id', '=', '0')
else:
employee = employee_obj.browse(cursor, user, args[i][2],
context=context)
if not employee.services:
args[i] = ('id', '==', '0')
args[i] = ('id', '=', '0')
else:
args[i] = ('id', 'in',
[x.product.id for x in employee.services])