book:caching for line, settings: cache clear
This commit is contained in:
parent
2b9a2ba07a
commit
1e1e7d6b85
2 changed files with 13 additions and 1 deletions
|
@ -21,4 +21,13 @@ class AssetSetting(ModelSingleton, ModelSQL, ModelView):
|
|||
model_name='cashbook.book', ondelete='RESTRICT',
|
||||
help='Profit and loss on sale of assets are recorded in the cash book.')
|
||||
|
||||
@classmethod
|
||||
def write(cls, *args):
|
||||
""" clear cache-values
|
||||
"""
|
||||
MemCache = Pool().get('cashbook.memcache')
|
||||
|
||||
MemCache._cashbook_value_cache.clear_all()
|
||||
super(AssetSetting, cls).write(*args)
|
||||
|
||||
# end AssetSetting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue