Fix typo for issue138
This commit is contained in:
1 parent
620c0d3f54
commit
ccce3c85de
1 file changed
+2
-2
+2
-2
@@ -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])
|
||||
|
||||
Reference in new issue
Block a user