Browse Source

publish muk_web_client_refresh - 12.0

pull/62/head
MuK IT GmbH 6 years ago
parent
commit
36d62df3b3
  1. 2
      muk_web_client_refresh/models/base_automation.py

2
muk_web_client_refresh/models/base_automation.py

@ -35,7 +35,7 @@ class BaseAutomation(models.Model):
def create_refresh_rules(self, model_name):
model = self.env['ir.model'].search(
[('model', '=', model_name)], limit=1)
if model_name in self.env and len(model):
if model_name in self.env and model:
triggers = [
('on_create', 'Creation'),
('on_write', 'Update'),

Loading…
Cancel
Save