[FIX] Can be upgraded with materialized views generated
parent
5735843d14
commit
0c9a8d39df
|
@ -18,6 +18,8 @@ class BaseModel(models.AbstractModel):
|
||||||
@api.model_cr_context
|
@api.model_cr_context
|
||||||
def _auto_init(self):
|
def _auto_init(self):
|
||||||
if self._name.startswith(BiSQLView._model_prefix):
|
if self._name.startswith(BiSQLView._model_prefix):
|
||||||
|
if 'update_custom_fields' not in self._context:
|
||||||
|
return True
|
||||||
self._auto = False
|
self._auto = False
|
||||||
return super(BaseModel, self)._auto_init()
|
return super(BaseModel, self)._auto_init()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue