Bhumi Thakkar (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-574923-bth into 
lp:openobject-addons/6.1.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574923-bth/+merge/110324

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.


-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574923-bth/+merge/110324
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-574923-bth.
=== 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 @@
         final = []
         self.list_ids = []
 
-        self.final_list = self.find_children(ids)
+        if ids:
+            self.final_list = self.find_children(ids)
 
         for acc_id in self.final_list:
             selected_ids = line_pool.search(self.cr, self.uid, [('account_id','=',acc_id), ('move_id', 'in', self.dict_acc_ref[form['ref']])])

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to