From 54aba2356429fedc62e2fbd7cc4b587a8bbc001f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 10 Aug 2016 22:59:00 +0200 Subject: [PATCH] Use instances to create invoice account moves issue5751 review25541002 --- invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invoice.py b/invoice.py index 4cf362d50f..5863d2da69 100644 --- a/invoice.py +++ b/invoice.py @@ -66,8 +66,8 @@ class InvoiceLine: return self.product.type == 'assets' and self.product.depreciable return False - def get_move_line(self): + def get_move_lines(self): Asset = Pool().get('account.asset') if self.asset: Asset.close([self.asset], account=self.account) - return super(InvoiceLine, self).get_move_line() + return super(InvoiceLine, self).get_move_lines()