From 72e31eafcb04e1241f9f796dec4e0c9ec57c82f0 Mon Sep 17 00:00:00 2001 From: hveficent Date: Tue, 28 Aug 2018 17:57:12 +0200 Subject: [PATCH] [FIX] Can be upgraded with materialized views generated --- bi_sql_editor/models/bi_sql_view.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bi_sql_editor/models/bi_sql_view.py b/bi_sql_editor/models/bi_sql_view.py index d6e3ec25..7e96dee3 100644 --- a/bi_sql_editor/models/bi_sql_view.py +++ b/bi_sql_editor/models/bi_sql_view.py @@ -18,6 +18,8 @@ class BaseModel(models.AbstractModel): @api.model_cr_context def _auto_init(self): if self._name.startswith(BiSQLView._model_prefix): + if 'update_custom_fields' not in self._context: + return True self._auto = False return super(BaseModel, self)._auto_init()