From 9d030dbc5b9a8fef41260f23fac0c9747f3fa1e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 22 May 2014 23:36:23 +0200 Subject: [PATCH] Add company and employee as cache keys issue3905 review8331002 --- company.py | 3 +++ 1 file changed, 3 insertions(+) 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']