Add company and employee as cache keys
issue3905 review8331002
This commit is contained in:
1 parent
68bfeca5fc
commit
9d030dbc5b
1 file changed
+3
@@ -7,6 +7,7 @@ from trytond.report import Report
|
||||
from trytond.pyson import Eval, If
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.backend.database import CursorInterface
|
||||
|
||||
try:
|
||||
import pytz
|
||||
@@ -15,6 +16,8 @@ except ImportError:
|
||||
TIMEZONES = []
|
||||
TIMEZONES += [(None, '')]
|
||||
|
||||
CursorInterface.cache_keys.update({'company', 'employee'})
|
||||
|
||||
__all__ = ['Company', 'Employee', 'UserEmployee', 'User', 'Property',
|
||||
'Sequence', 'SequenceStrict', 'Date', 'CompanyConfigStart',
|
||||
'CompanyConfig', 'CompanyReport', 'LetterReport']
|
||||
|
||||
Reference in new issue
Block a user