Reviewers: ,


Please review this at http://codereview.tryton.org/315001/

Affected files:
  M trytond/model/modelsql.py
  M trytond/test/mptt.py


Index: trytond/model/modelsql.py
===================================================================
--- a/trytond/model/modelsql.py
+++ b/trytond/model/modelsql.py
@@ -311,14 +311,6 @@
                     values[field]))
             else:
                 upd_todo.append(field)
-            if (isinstance(column, fields.Many2One)
-                    and column.model_name == self._name
-                    and column.left and column.right
- and set((column.left, column.right)).isdisjoint(values)):
-                upd0 += ', "%s", "%s"' % (column.left, column.right)
-                upd1 += ', %s, %s'
-                upd2.extend([0, 0])
-
             if field in self._columns \
                     and hasattr(self._columns[field], 'selection') \
                     and self._columns[field].selection \
Index: trytond/test/mptt.py
===================================================================
--- a/trytond/test/mptt.py
+++ b/trytond/test/mptt.py
@@ -30,4 +30,10 @@
     def default_active(self):
         return True

+    def default_left(self):
+        return 0
+
+    def default_right(self):
+        return 0
+
 MPTT()


--
[email protected] mailing list

Reply via email to