Use instances to create invoice account moves
issue5751 review25541002
This commit is contained in:
1 parent
bb79db5063
commit
54aba23564
1 file changed
+2
-2
+2
-2
@@ -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()
|
||||
Reference in new issue
Block a user