no more <property /> tags
authorChristophe Simonis <christophe@tinyerp.com>
Fri, 22 Aug 2008 09:40:53 +0000 (11:40 +0200)
committerChristophe Simonis <christophe@tinyerp.com>
Fri, 22 Aug 2008 09:40:53 +0000 (11:40 +0200)
bzr revid: christophe@tinyerp.com-20080822094053-sy9ixy5fr8mcikzk

bin/osv/fields.py
bin/osv/orm.py

index 9e3ba93..959e9f1 100644 (file)
@@ -83,7 +83,6 @@ class _column(object):
         self._domain = domain or []
         self.relate = False
         self._context = context
-        self.group_name = False
         self.write = False
         self.read = False
         self.view_load = 0
index 3d74009..4d15730 100644 (file)
@@ -324,7 +324,6 @@ class orm_template(object):
                 'ttype': f._type,
                 'relate': (f.relate and 1) or 0,
                 'relation': f._obj or 'NULL',
-                #'group_name': f.group_name or '',
                 'view_load': (f.view_load and 1) or 0,
                 'select_level': str(f.select or 0)
             }
@@ -801,28 +800,6 @@ class orm_template(object):
                     trans = tools.translate(cr, self._name, 'view', context['lang'], node.getAttribute('sum').encode('utf8'))
                     if trans:
                         node.setAttribute('sum', trans.decode('utf8'))
-            #
-            # Add view for properties !
-            #
-            if node.localName == 'properties':
-                parent = node.parentNode
-                doc = node.ownerDocument
-                models = map(lambda x: "'"+x+"'", [self._name] + self._inherits.keys())
-                cr.execute('select id,name,group_name from ir_model_fields where model in ('+','.join(models)+') and view_load order by group_name, id')
-                oldgroup = None
-                res = cr.fetchall()
-                for id, fname, gname in res:
-                    if oldgroup != gname:
-                        child = doc.createElement('separator')
-                        child.setAttribute('string', gname.decode('utf-8'))
-                        child.setAttribute('colspan', "4")
-                        oldgroup = gname
-                        parent.insertBefore(child, node)
-
-                    child = doc.createElement('field')
-                    child.setAttribute('name', fname.decode('utf-8'))
-                    parent.insertBefore(child, node)
-                parent.removeChild(node)
 
         if childs:
             for f in node.childNodes: