Disable prefetch on env-computed fields
As in the inverse field that write the value into the <field>_env_default we have to browse the record, the prefetch has the effect of calling compute on the env-computed field which resets the value to it's previous state before we have the occasion to store it.
This commit is contained in:
parent
60375bbf65
commit
6b44590605
|
|
@ -258,6 +258,7 @@ class ServerEnvMixin(models.AbstractModel):
|
||||||
field.required = False
|
field.required = False
|
||||||
field.copy = False
|
field.copy = False
|
||||||
field.sparse = None
|
field.sparse = None
|
||||||
|
field.prefetch = False
|
||||||
|
|
||||||
def _server_env_add_is_editable_field(self, base_field):
|
def _server_env_add_is_editable_field(self, base_field):
|
||||||
"""Add a field indicating if we can edit the env-computed fields
|
"""Add a field indicating if we can edit the env-computed fields
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue