diff --git a/odoo/fields.py b/odoo/fields.py index e1417bb6017..99bb26f5581 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -637,8 +637,10 @@ class Field(MetaField('DummyField', (object,), {})): try: field = Model._fields[fname] except KeyError: - msg = "Field %s cannot find dependency %r on model %r." - raise ValueError(msg % (self, fname, model_name)) + raise ValueError( + f"Wrong @depends on '{self.compute}' (compute method of field {self}). " + f"Dependency field '{fname}' not found in model {model_name}." + ) if field is self and index: self.recursive = True