Use instances to create invoice account moves

issue5751
review25541002
This commit is contained in:
Cédric Krier committed 2016-08-10 22:59:00 +02:00
1 parent bb79db5063
commit 54aba23564
1 file changed
+2 -2
+2 -2
View File
@@ -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()