diff --git a/company.py b/company.py index 34565299f2..3192bb36d8 100644 --- a/company.py +++ b/company.py @@ -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']