Merge lp:~openerp-dev/openobject-addons/6.1-opw-574923-bth into lp:openobject-addons/6.1

Proposed by Bhumi Thakkar (Open ERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 6843
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-574923-bth
Merge into: lp:openobject-addons/6.1
Diff against target: 13 lines (+2/-1)
1 file modified
account_analytic_plans/report/crossovered_analytic.py (+2/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-574923-bth
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+110324@code.launchpad.net

Description of the change

Hello,

     Can't print crossovered analytic report.

1. Project => Invoicing => Contracts to Renew
2. Open any record.
3. From Sidebar select Crossovered Analytic from Reports
4. Fill up all required information and click on "print" Button.

Observed: Got Error
          from addons side "IndexError: list index out of range" and
          from web: "TypeError: coercing to Unicode: need string or buffer, tuple found".
Expected: Print Report Crossovered Analytic report

Put if condition for ids. if ids: then call the function to fetch childrens of ids.

Thanks.

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

Hello,

This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-574923-port-mma/+merge/136585 and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

6843. By Bhumi Thakkar (Open ERP)

[FIX] Put condition before find childrens based on used id.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account_analytic_plans/report/crossovered_analytic.py'
--- account_analytic_plans/report/crossovered_analytic.py 2011-01-14 00:11:01 +0000
+++ account_analytic_plans/report/crossovered_analytic.py 2012-06-14 13:07:31 +0000
@@ -128,7 +128,8 @@
128 final = []128 final = []
129 self.list_ids = []129 self.list_ids = []
130130
131 self.final_list = self.find_children(ids)131 if ids:
132 self.final_list = self.find_children(ids)
132133
133 for acc_id in self.final_list:134 for acc_id in self.final_list:
134 selected_ids = line_pool.search(self.cr, self.uid, [('account_id','=',acc_id), ('move_id', 'in', self.dict_acc_ref[form['ref']])])135 selected_ids = line_pool.search(self.cr, self.uid, [('account_id','=',acc_id), ('move_id', 'in', self.dict_acc_ref[form['ref']])])