parent
ff82575845
commit
23898b44f8
|
@ -21,7 +21,7 @@ class PurchaseLine(metaclass=PoolMeta):
|
|||
for entry_acc in self.analytic_accounts:
|
||||
accounts = AnalyticAccount.search(
|
||||
self.get_party_analytic_account_domain(entry_acc.root))
|
||||
if accounts and not entry_acc.account:
|
||||
if accounts and not getattr(entry_acc, 'account', None):
|
||||
entry_acc.account = accounts[0]
|
||||
|
||||
@fields.depends('purchase', '_parent_purchase.company',
|
||||
|
|
Loading…
Reference in New Issue