Return value for each move id in get_purchase
This commit is contained in:
1 parent
ac85e5b149
commit
9aa75f1b9b
1 file changed
+1
@@ -856,6 +856,7 @@ class Move(OSV):
|
||||
|
||||
res = {}
|
||||
for move in self.browse(cursor, user, ids, context=context):
|
||||
res[move.id] = False
|
||||
if move.purchase_line:
|
||||
res[move.id] = move.purchase_line.purchase.id
|
||||
|
||||
|
||||
Reference in new issue
Block a user