[IMP] fields: do not force required=True on related fields

This may cause issues if the field is stored: non-null constraint will prevent
saving records when no value is provided.
This commit is contained in:
Raphael Collet 2014-10-09 17:18:28 +02:00
parent ab8bd8066a
commit 8a9027edd1
1 changed files with 0 additions and 4 deletions

View File

@ -455,10 +455,6 @@ class Field(object):
if not getattr(self, attr):
setattr(self, attr, getattr(field, prop))
# special case: required
if not self.required:
self.required = all(field.required for field in fields)
def _compute_related(self, records):
""" Compute the related field `self` on `records`. """
# when related_sudo, bypass access rights checks when reading values