From d951bf78b543c160ad23358fcabe890c2a0fde08 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Tue, 17 Jun 2008 11:55:27 +0200 Subject: [PATCH] Correction for warning: "/osv/orm.py:1964: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if next:" --- trytond/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/osv/orm.py b/trytond/osv/orm.py index 4fe897f360..ac21107139 100644 --- a/trytond/osv/orm.py +++ b/trytond/osv/orm.py @@ -1961,7 +1961,7 @@ class ORM(object): elif pos == 'after': parent = element.getparent() next = element.getnext() - if next: + if next is not None: for child in element2: index = parent.index(next) parent.insert(index - 1, child)