From bddbc06222058ca3cbd602e5cb7d085a6f53090d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 20 Jan 2026 17:31:26 +0100 Subject: [PATCH] Do not check for missing parent depends when the One2Many is readonly Closes #14526 --- trytond/trytond/tests/test_tryton.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trytond/trytond/tests/test_tryton.py b/trytond/trytond/tests/test_tryton.py index 4f73f19429..6bb8c6aa84 100644 --- a/trytond/trytond/tests/test_tryton.py +++ b/trytond/trytond/tests/test_tryton.py @@ -607,7 +607,8 @@ class ModuleTestCase(_DBTestCase): for tfield in target._fields.values(): if (tfield._type == 'one2many' and tfield.model_name == mname - and tfield.field == depend): + and tfield.field == depend + and not tfield.readonly): self.assertIn('_parent_%s' % depend, parent_depends, msg='Missing "_parent_%s" in %s' % ( depend, qualname))