From ef2e716cccb02c44127f78e529ab2a7868c675e3 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Sun, 28 Apr 2019 01:04:14 +0200 Subject: [PATCH] Merge account kind and account type --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index 9e0b516..0ad4707 100644 --- a/invoice.py +++ b/invoice.py @@ -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):