Don't add {create,write}_{uid,date} fields in default view

This commit is contained in:
Cédric Krier committed 2008-02-29 16:06:42 +01:00
1 parent 018f203158
commit c4e32a1eeb
1 file changed
+2
+2
View File
@@ -1903,6 +1903,8 @@ class ORM(object):
xml = '''<?xml version="1.0" encoding="utf-8"?>''' \
'''<form string="%s">''' % (self._description,)
for i in res:
if i in ('create_uid', 'create_date', 'write_uid', 'write_date'):
continue
if res[i]['type'] not in ('one2many', 'many2many'):
xml += '<label name="%s"/>' % (i,)
xml += '<field name="%s"/>' % (i,)