changeset 11a6a39f43ad in modules/analytic_invoice:default
details: 
https://hg.tryton.org/modules/analytic_invoice?cmd=changeset&node=11a6a39f43ad
description:
        Add new date parameter to Asset.get_closing_move

        issue10379
diffstat:

 asset.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 13f73f3ad7b8 -r 11a6a39f43ad asset.py
--- a/asset.py  Sun May 02 10:30:11 2021 +0200
+++ b/asset.py  Mon May 03 13:23:23 2021 +0200
@@ -41,8 +41,8 @@
         self.set_analytic_lines(move, self.product.account_expense_used)
         return move
 
-    def get_closing_move(self, account):
-        move = super(Asset, self).get_closing_move(account)
+    def get_closing_move(self, account, date=None):
+        move = super().get_closing_move(account, date=date)
         self.set_analytic_lines(
             move, account or self.product.account_revenue_used)
         return move

Reply via email to