From 3cdb85826d0947be01277e2bf45d79b636640aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 9 Jan 2009 18:47:54 +0100 Subject: [PATCH] Add automaticaly field defined in sequence attributes in the view --- trytond/osv/orm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/osv/orm.py b/trytond/osv/orm.py index eb477fae60..700de4f1bb 100644 --- a/trytond/osv/orm.py +++ b/trytond/osv/orm.py @@ -2160,6 +2160,8 @@ class ORM(object): context) if result: element.set('string', result) + if element.tag == 'tree' and element.get('sequence'): + fields_attrs.setdefault(element.get('sequence'), {}) if childs: for field in element: