diff --git a/data_encryption/__manifest__.py b/data_encryption/__manifest__.py index e8f8759b..933b85c1 100644 --- a/data_encryption/__manifest__.py +++ b/data_encryption/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Encryption data", "summary": "Store accounts and credentials encrypted by environment", - "version": "16.0.1.0.1", + "version": "17.0.1.0.0", "development_status": "Alpha", "category": "Tools", "website": "https://github.com/OCA/server-env", diff --git a/data_encryption/models/encrypted_data.py b/data_encryption/models/encrypted_data.py index 2e952658..d7a56157 100644 --- a/data_encryption/models/encrypted_data.py +++ b/data_encryption/models/encrypted_data.py @@ -140,8 +140,7 @@ def _encrypted_store(self, name, data, env=None): self.create( {"name": name, "environment": env, "encrypted_data": encrypted_data} ) - self._encrypted_get.clear_cache(self) - self._encrypted_read_json.clear_cache(self) + self.env.registry.clear_cache() @api.model def _encrypted_store_json(self, name, json_data, env=None):