Allow to create more than one invoice line per purchase line
This commit is contained in:
1 parent
2e43b136c1
commit
11fff2e50d
1 file changed
+2
-1
+2
-1
@@ -185,7 +185,8 @@ class PurchaseLine(OSV):
|
||||
if line.analytic_accounts:
|
||||
selection_id = account_selection_obj.copy(cursor, user,
|
||||
line.analytic_accounts.id, context=context)
|
||||
res['analytic_accounts'] = selection_id
|
||||
for vals in res:
|
||||
vals['analytic_accounts'] = selection_id
|
||||
return res
|
||||
|
||||
PurchaseLine()
|
||||
|
||||
Reference in new issue
Block a user