changeset 51be8a376b81 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=51be8a376b81
description:
        Remove unused expire variable in email reset password report

        Since issue10906 it is no more used.
diffstat:

 trytond/res/user.py |  6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diffs (20 lines):

diff -r b52363a1d962 -r 51be8a376b81 trytond/res/user.py
--- a/trytond/res/user.py       Tue Apr 19 13:21:42 2022 +0200
+++ b/trytond/res/user.py       Thu Apr 21 10:01:42 2022 +0200
@@ -1210,16 +1210,10 @@
 
     @classmethod
     def get_context(cls, records, header, data):
-        pool = Pool()
-        Lang = pool.get('ir.lang')
         context = super().get_context(records, header, data)
-        lang = Lang.get()
         context['host'] = host()
         context['http_host'] = http_host()
         context['database'] = Transaction().database.name
-        context['expire'] = lang.strftime(
-            records[0].password_reset_expire,
-            format=lang.date + ' %H:%M:%S')
         expire_delay = (
             records[0].password_reset_expire - datetime.datetime.now())
         # Use a precision of minutes

Reply via email to