changeset 4a857556b923 in modules/company_work_time:default details: https://hg.tryton.org/modules/company_work_time?cmd=changeset&node=4a857556b923 description: Remove user login and user preferences cache
The user login cache could result in an error when using trytond in a multiprocess environment due to a delay in the broadcast of the cache invalidation. The user preferences cache was there only to set the context when validating the records but it is useless since the context is now set from the transaction. review401251002 issue11430 diffstat: company.py | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diffs (14 lines): diff -r bfbd2c379a74 -r 4a857556b923 company.py --- a/company.py Sat Apr 16 18:30:17 2022 +0200 +++ b/company.py Fri Apr 29 17:14:27 2022 +0200 @@ -37,10 +37,3 @@ @staticmethod def default_hours_per_work_year(): return 1920 - - @classmethod - def write(cls, *args): - pool = Pool() - User = pool.get('res.user') - super(Company, cls).write(*args) - User._get_preferences_cache.clear()