details:   https://code.tryton.org/tryton/commit/8dba20989765
branch:    default
user:      Cédric Krier <[email protected]>
date:      Tue Jan 20 17:31:26 2026 +0100
description:
        Do not check for missing parent depends when the One2Many is readonly

        Closes #14526
diffstat:

 trytond/trytond/tests/test_tryton.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 9ef460ce1657 -r 8dba20989765 trytond/trytond/tests/test_tryton.py
--- a/trytond/trytond/tests/test_tryton.py      Mon Jan 19 12:17:43 2026 +0100
+++ b/trytond/trytond/tests/test_tryton.py      Tue Jan 20 17:31:26 2026 +0100
@@ -607,7 +607,8 @@
                 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))

Reply via email to