Fix read of not line type
This commit is contained in:
1 parent
3de51d5f85
commit
0fbb0a9047
1 file changed
+2
@@ -84,6 +84,8 @@ class PurchaseLine(OSV):
|
||||
id2record[record['id']] = record
|
||||
lines = self.browse(cursor, user, ids, context=context)
|
||||
for line in lines:
|
||||
if line.type != 'line':
|
||||
continue
|
||||
for account in line.analytic_accounts.accounts:
|
||||
if account.root.id in root_ids:
|
||||
id2record[line.id]['analytic_account_' \
|
||||
|
||||
Reference in new issue
Block a user