issue12570.diff [account] Do not compute account party for general ledger line without party
#162240
This commit is contained in:
parent
063077a587
commit
4843bbf2b3
|
@ -0,0 +1,13 @@
|
|||
diff --git a/tryton/modules/account/account.py b/tryton/modules/account/account.py
|
||||
index 1633590c7a..92d4bbc5c4 100644
|
||||
--- a/tryton/modules/account/account.py
|
||||
+++ b/tryton/modules/account/account.py
|
||||
@@ -2342,6 +2342,8 @@ class GeneralLedgerLine(ModelSQL, ModelView):
|
||||
account_ids, party_ids = set(), set()
|
||||
for r in records:
|
||||
account_parties[r.id] = None
|
||||
+ if not r.party:
|
||||
+ continue
|
||||
account_party2ids[r.account.id, r.party.id].append(r.id)
|
||||
account_ids.add(r.account.id)
|
||||
party_ids.add(r.party.id)
|
2
series
2
series
|
@ -115,3 +115,5 @@ issue7677.diff # [trytond] Do not set rec_name for unsaved record
|
|||
issue7672.diff # [stock] Always fill product and template of cost price revision
|
||||
|
||||
sale_purchase_relate_lines.diff # [sale] [purchase] Add relates to sale and purchase lines from party and product
|
||||
|
||||
issue12570.diff # [account] Do not compute account party for general ledger line without party
|
||||
|
|
Loading…
Reference in New Issue