Merge account kind and account type

This commit is contained in:
Albert Cervera i Areny 2019-04-28 01:04:14 +02:00
parent ad50ad4f58
commit ef2e716ccc
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class Invoice(metaclass=PoolMeta):
@property
def payment_details(self):
return sorted([ml for ml in self.move.lines
if ml.account.kind == 'receivable'],
if ml.account.type.receivable],
key=attrgetter('maturity_date'))
def _credit(self):