Merge lp:~openerp-dev/openobject-addons/trunk-opw-574923-port-mma into lp:openobject-addons

Proposed by Mayur Maheshwari(OpenERP)
Status: Rejected
Rejected by: Fabien (Open ERP)
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-opw-574923-port-mma
Merge into: lp:openobject-addons
Diff against target: 15 lines (+3/-2)
1 file modified
account_analytic_plans/report/crossovered_analytic.py (+3/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-opw-574923-port-mma
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+136585@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.
   Got Error
           "Index Error: list index out of range"
   code is forward port from 6.1

Thanks,
Mayur

To post a comment you must log in.
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

final_list is not defined if not ids

Unmerged revisions

8147. By Bhumi Thakkar (Open ERP)

[FIX]account_analytic_plans: 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 2012-10-02 10:29:15 +0000
+++ account_analytic_plans/report/crossovered_analytic.py 2012-11-28 07:19:30 +0000
@@ -128,8 +128,9 @@
128 acc_id = []128 acc_id = []
129 final = []129 final = []
130 self.list_ids = []130 self.list_ids = []
131131
132 self.final_list = self.find_children(ids)132 if ids:
133 self.final_list = self.find_children(ids)
133134
134 for acc_id in self.final_list:135 for acc_id in self.final_list:
135 selected_ids = line_pool.search(self.cr, self.uid, [('account_id','=',acc_id), ('move_id', 'in', self.dict_acc_ref[form['ref']])])136 selected_ids = line_pool.search(self.cr, self.uid, [('account_id','=',acc_id), ('move_id', 'in', self.dict_acc_ref[form['ref']])])

Subscribers

People subscribed via source and target branches

to all changes: