Merge lp:~openerp-dev/openobject-addons/6.1-opw-574713-skh into lp:openobject-addons/6.1

Proposed by Somesh Khare
Status: Approved
Approved by: Vinay Rana (OpenERP)
Approved revision: 6795
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-574713-skh
Merge into: lp:openobject-addons/6.1
Diff against target: 21 lines (+2/-2)
1 file modified
idea/ (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-574713-skh
Reviewer Review Type Date Requested Status
Vinay Rana (OpenERP) (community) Approve
Naresh(OpenERP) Pending
Review via email:

Description of the change

Hello Sir,

[Fix]: Idea: Count of comments and Count of votes in Idea should start from 0.

When you create new Idea, Count of Comments and Count of Vote fields are automatically become 1( See From Statistics tab of Idea), Even the Idea is in New state(No votes or comments Done). Counter for both the fields should be 0 when no comments or votes or if the state of the idea is New.

This branch fixes this issue.

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

Somesh Khare

To post a comment you must log in.
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

the propose patch fixes the default value.

review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :


This bug was qualified as Not Relevant on Trunk (means that architecture on trunk has changed and so this bug has no meaning anymore). If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.


Unmerged revisions

6795. By Somesh Khare

[FIX] Idea: Count of comments and Count of votes in Idea should start from 0(Case: Ref 574713)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'idea/'
2--- idea/ 2011-12-31 07:57:20 +0000
3+++ idea/ 2012-05-11 06:35:22 +0000
4@@ -105,7 +105,7 @@
5 if not ids:
6 return {}
8- sql = """SELECT, COUNT(1)
9+ sql = """SELECT, COUNT(v.idea_id)
10 FROM idea_idea i LEFT OUTER JOIN idea_vote v ON = v.idea_id
11 WHERE IN %s
13@@ -125,7 +125,7 @@
14 if not ids:
15 return {}
17- sql = """SELECT, COUNT(1)
18+ sql = """SELECT, COUNT(c.idea_id)
19 FROM idea_idea i LEFT OUTER JOIN idea_comment c ON = c.idea_id
20 WHERE IN %s