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
45 lines
1.1 KiB
Python
45 lines
1.1 KiB
Python
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
# this repository contains the full copyright notices and license terms.
|
|
from trytond.pool import Pool
|
|
|
|
from . import group, ir, routes, user
|
|
|
|
__all__ = ['register', 'routes']
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
group.Group,
|
|
user.User,
|
|
user.LoginAttempt,
|
|
user.UserDevice,
|
|
user.UserAction,
|
|
user.UserGroup,
|
|
user.Warning_,
|
|
user.UserApplication,
|
|
user.UserConfigStart,
|
|
ir.UIMenuGroup,
|
|
ir.ActionGroup,
|
|
ir.Action,
|
|
ir.ActionReport,
|
|
ir.ActionActWindow,
|
|
ir.ActionWizard,
|
|
ir.ActionURL,
|
|
ir.ActionKeyword,
|
|
ir.ModelButtonGroup,
|
|
ir.ModelButtonRule,
|
|
ir.ModelButtonClick,
|
|
ir.RuleGroupGroup,
|
|
ir.SequenceType,
|
|
ir.SequenceTypeGroup,
|
|
ir.Export,
|
|
ir.Export_Group,
|
|
ir.Export_Write_Group,
|
|
module='res', type_='model')
|
|
Pool.register(
|
|
user.UserConfig,
|
|
module="res", type_='wizard')
|
|
Pool.register(
|
|
user.EmailResetPassword,
|
|
module='res', type_='report')
|