Merge lp:~vauxoo/openobject-addons/7.0-project_fix_doc_count into lp:openobject-addons/7.0

Proposed by Somesh Khare
Status: Merged
Merged at revision: 9938
Proposed branch: lp:~vauxoo/openobject-addons/7.0-project_fix_doc_count
Merge into: lp:openobject-addons/7.0
Diff against target: 14 lines (+3/-1)
1 file modified
project/project.py (+3/-1)
To merge this branch: bzr merge lp:~vauxoo/openobject-addons/7.0-project_fix_doc_count
Reviewer Review Type Date Requested Status
Martin Trigaux (OpenERP) (community) Approve
Naresh(OpenERP) Pending
Review via email: mp+195713@code.launchpad.net

Description of the change

Hello Sir,

[FIX]function field with wrong type int instead of integer

Proposing the customer branch as there is wrong type on the function field 'doc_count' given as 'int' instead of 'integer'.

Kindly review the branch and please share your views on it.

Thanks & Regards,
Somesh Khare

To post a comment you must log in.
Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

Hello,

Thanks for your fix, was merged in 7.0

revno: 9938 [merge]
revision-id: <email address hidden>

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'project/project.py'
2--- project/project.py 2014-03-25 10:49:21 +0000
3+++ project/project.py 2014-03-26 22:37:03 +0000
4@@ -288,7 +288,9 @@
5 help="The kind of document created when an email is received on this project's email alias"),
6 'privacy_visibility': fields.selection(_visibility_selection, 'Privacy / Visibility', required=True),
7 'state': fields.selection([('template', 'Template'),('draft','New'),('open','In Progress'), ('cancelled', 'Cancelled'),('pending','Pending'),('close','Closed')], 'Status', required=True,),
8- 'doc_count':fields.function(_get_attached_docs, string="Number of documents attached", type='int')
9+ 'doc_count': fields.function(
10+ _get_attached_docs, string="Number of documents attached", type='integer'
11+ )
12 }
13
14 def _get_type_common(self, cr, uid, context):