Merge PR #89 into 15.0

Signed-off-by simahawk
This commit is contained in:
OCA-git-bot 2021-10-27 12:45:44 +00:00
commit d84575f0f6
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ class ServerEnvMixin(models.AbstractModel):
# (inherits), we want to override it with a new one # (inherits), we want to override it with a new one
if fieldname not in self._fields or self._fields[fieldname].inherited: if fieldname not in self._fields or self._fields[fieldname].inherited:
base_field_cls = base_field.__class__ base_field_cls = base_field.__class__
field_args = base_field.args.copy() field_args = base_field.args.copy() if base_field.args else {}
field_args.pop("_sequence", None) field_args.pop("_sequence", None)
field_args.update({"sparse": "server_env_defaults", "automatic": True}) field_args.update({"sparse": "server_env_defaults", "automatic": True})