[FIX] function field with wrong type int instead of integer
authorYanina Aular <yanina.aular@vauxoo.com>
Fri, 15 Nov 2013 22:27:17 +0000 (17:57 -0430)
committerYanina Aular <yanina.aular@vauxoo.com>
Fri, 15 Nov 2013 22:27:17 +0000 (17:57 -0430)
bzr revid: yanina.aular@vauxoo.com-20131115222717-12bplq7rnv3rorbm

addons/project/project.py

index 5bd2e60..c7b394a 100644 (file)
@@ -288,7 +288,8 @@ class project(osv.osv):
                                         help="The kind of document created when an email is received on this project's email alias"),
         'privacy_visibility': fields.selection(_visibility_selection, 'Privacy / Visibility', required=True),
         'state': fields.selection([('template', 'Template'),('draft','New'),('open','In Progress'), ('cancelled', 'Cancelled'),('pending','Pending'),('close','Closed')], 'Status', required=True,),
-        'doc_count':fields.function(_get_attached_docs, string="Number of documents attached", type='int')
+        'doc_count':fields.function(_get_attached_docs, string="Number of documents attached",
+            type='integer')
      }
 
     def _get_type_common(self, cr, uid, context):