← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~camptocamp/ocb-addons/ocb-7.0-project_fix_doc_count-lp1251773-vauxoo+afe into lp:ocb-addons

 

Alexandre Fayolle - camptocamp has proposed merging lp:~camptocamp/ocb-addons/ocb-7.0-project_fix_doc_count-lp1251773-vauxoo+afe into lp:ocb-addons.

Requested reviews:
  OpenERP Community Backports Team (ocb)
Related bugs:
  Bug #1251773 in OpenERP Community Backports (Addons): "[project][field][doc_count] wrong type"
  https://bugs.launchpad.net/ocb-addons/+bug/1251773

For more details, see:
https://code.launchpad.net/~camptocamp/ocb-addons/ocb-7.0-project_fix_doc_count-lp1251773-vauxoo+afe/+merge/209010

fix wrong data type for project.doc_count function field (lp:1251773)

port of https://code.launchpad.net/~vauxoo/openobject-addons/7.0-project_fix_doc_count/+merge/195713 to OCB
-- 
https://code.launchpad.net/~camptocamp/ocb-addons/ocb-7.0-project_fix_doc_count-lp1251773-vauxoo+afe/+merge/209010
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~camptocamp/ocb-addons/ocb-7.0-project_fix_doc_count-lp1251773-vauxoo+afe into lp:ocb-addons.
=== modified file 'project/project.py'
--- project/project.py	2014-02-06 17:27:02 +0000
+++ project/project.py	2014-03-03 08:36:05 +0000
@@ -336,7 +336,8 @@
                                         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):


Follow ups