diff --git a/conftest.py b/conftest.py index 38794fb4..3d65f1ed 100644 --- a/conftest.py +++ b/conftest.py @@ -1425,6 +1425,9 @@ class Model: ) def mapped(self, path): + if callable(path): + return [path(r) for r in self] + field, *rest = path.split('.', 1) descr = self._fields[field] if descr['type'] in ('many2one', 'one2many', 'many2many'):