Browse Source

[FIX] Can be upgraded with materialized views generated

pull/264/head
hveficent 6 years ago
committed by Adrià Gil Sorribes
parent
commit
1b939f6331
  1. 2
      bi_sql_editor/models/bi_sql_view.py

2
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()

Loading…
Cancel
Save