In Australia, being able to print a balance sheet is core, so this is a
very unsatisfactory outcome.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/690031

Title:
  [6.0RC1] Account Balance report for Balance Sheet Report gives exception: 
'NoneType' object has no attribute 'Image'

Status in OpenObject Addons Modules:
  Won't Fix

Bug description:
  1. Go to Accounting / Balance Sheet Report / Balance Sheet Report Form.

2. Create a new report and add any GL Account (I am using the Australian Chart 
of Accounts). I added one for Code 0, the top-level account.

3. Press Save.

4. Press "Print" in the toolbar.

5. Select "Account Balance" and click OK.

6. Click "Print" for "Select Dates Period".

Get an error message in an alert box:

'NoneType' object has no attribute 'Image'

(<type 'exceptions.AttributeError'>, AttributeError ("'NoneType' object has no 
attribute 'Image'",), <traceback object at 0xbfced9c>)


--------------------------------------------------------
Excerpt from server log file:

[2010-12-14 16:28:01,795][openerp6rc1setup] ERROR:web-services:[36]:     
tags[n.tag](n)
[2010-12-14 16:28:01,795][openerp6rc1setup] ERROR:web-services:[37]:   File 
"/usr/lib/python2.6/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py",
 line 438, in _image
[2010-12-14 16:28:01,795][openerp6rc1setup] ERROR:web-services:[38]:     img = 
ImageReader(s)
[2010-12-14 16:28:01,795][openerp6rc1setup] ERROR:web-services:[39]:   File 
"/usr/lib/python2.6/site-packages/reportlab/lib/utils.py", line 541, in __init__
[2010-12-14 16:28:01,796][openerp6rc1setup] ERROR:web-services:[40]:     if 
_isPILImage(fileName):
[2010-12-14 16:28:01,796][openerp6rc1setup] ERROR:web-services:[41]:   File 
"/usr/lib/python2.6/site-packages/reportlab/lib/utils.py", line 521, in 
_isPILImage
[2010-12-14 16:28:01,796][openerp6rc1setup] ERROR:web-services:[42]:     return 
isinstance(im,Image.Image)
[2010-12-14 16:28:01,796][openerp6rc1setup] ERROR:web-services:[43]: 
AttributeError: 'NoneType' object has no attribute 'Image'
[2010-12-14 16:28:01,904][?] DEBUG_RPC:service:'report'
[2010-12-14 16:28:01,904][?] DEBUG_RPC:method:'report_get'
[2010-12-14 16:28:01,905][?] DEBUG_RPC:params:['openerp6rc1setup', 1, '*', 16]
[2010-12-14 16:28:01,906][openerp6rc1setup] DEBUG_RPC:exception:u'warning -- 
\'NoneType\' object has no attribute \'Image\'\n\n(<type 
\'exceptions.AttributeError\'>, AttributeError("\'NoneType\' object has no 
attribute \'Image\'",), <traceback object at 0xbfced9c>)'
[2010-12-14 16:28:01,907][openerp6rc1setup] DEBUG:web-services:netrpc: 
rpc-dispatching exception
Traceback (most recent call last):
  File 
"/usr/lib/python2.6/site-packages/openerp-server/service/netrpc_server.py", 
line 70, in run
    result = self.dispatch(msg[0], msg[1], msg[2:])
  File "/usr/lib/python2.6/site-packages/openerp-server/netsvc.py", line 499, 
in dispatch
    raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException


---------------------------------------------------------------------
Installed modules are:
Name    Category        Short Description       Author  Latest version  
Installed version       State   
account Accounting      Accounting and Financial Management     OpenERP SA      
6.0.1.1 6.0.1.1 installed       
account_accountant      Accounting      Accountant      OpenERP SA      6.0.1.1 
6.0.1.1 installed       
account_analytic_analysis       Accounting      report_account_analytic 
Camptocamp      6.0.1.1 6.0.1.1 installed       
account_analytic_default        Accounting      Account Analytic Default        
OpenERP SA      6.0.1.0 6.0.1.0 installed       
account_analytic_plans  Accounting      Multiple-plans management in Analytic 
Accounting        OpenERP SA      6.0.1.0 6.0.1.0 installed       
account_anglo_saxon     Inventory Control       Stock Accounting for Anglo 
Saxon countries      OpenERP SA, Veritos     6.0.1.2 6.0.1.2 installed       
account_budget  Accounting      Budget Management       OpenERP SA      6.0.1.0 
6.0.1.0 installed       
account_chart   Accounting      Charts of Accounts      OpenERP SA      6.0.1.1 
6.0.1.1 installed       
account_followup        Accounting      Accounting follow-ups management        
OpenERP SA      6.0.1.0 6.0.1.0 installed       
account_invoice_layout  Projects & Services     Invoices Layout Improvement     
OpenERP SA      6.0.1.0 6.0.1.0 installed       
account_payment Payment Payment Management      OpenERP SA      6.0.1.1 6.0.1.1 
installed       
account_reporting       Accounting      Reporting of Balancesheet for 
accounting        OpenERP SA      6.0.1.0 6.0.1.0 installed       
account_voucher Accounting      Accounting Voucher Entries      OpenERP SA      
6.0.1.0 6.0.1.0 installed       
analytic        Projects & Services     Analytic Account        OpenERP SA      
6.0.1.1 6.0.1.1 installed       
audittrail      Others  Audit Trail     OpenERP SA      6.0.1.0 6.0.1.0 
installed       
base    Base    Base    OpenERP SA      6.0.1.2 6.0.1.2 installed       
base_action_rule        Others  Action Rule     OpenERP SA      6.0.1.0 6.0.1.0 
installed       
base_calendar   Others  Basic Calendar Functionality    OpenERP SA      6.0.1.0 
6.0.1.0 installed       
base_contact    Base    Base Contact    OpenERP SA      6.0.1.0 6.0.1.0 
installed       
base_iban       Base    Create IBAN bank accounts       OpenERP SA      6.0.1.0 
6.0.1.0 installed       
base_report_creator     Base    Report Creator  OpenERP SA & Axelor     6.0.1.0 
6.0.1.0 installed       
base_report_designer    Base    Report designer interface module        OpenERP 
SA      6.0.0.1 6.0.0.1 installed       
base_setup      Base    Base Setup      OpenERP SA      6.0.1.0 6.0.1.0 
installed       
board   Base    Dashboard main module   OpenERP SA      6.0.1.0 6.0.1.0 
installed       
claim_from_delivery     Inventory Control       Claim from delivery     OpenERP 
SA      6.0.1.0 6.0.1.0 installed       
crm     CRM & SRM       Customer & Supplier Relationship Management     OpenERP 
SA      6.0.1.0 6.0.1.0 installed       
crm_claim       CRM & SRM       Customer & Supplier Relationship Management     
OpenERP SA      6.0.1.0 6.0.1.0 installed       
crm_helpdesk    CRM & SRM       CRM Helpdesk    OpenERP SA      6.0.1.0 6.0.1.0 
installed       
crm_partner_assign      Production      Partner Geo-Localisation        OpenERP 
SA      6.0.1.0 6.0.1.0 installed       
decimal_precision       Others  Decimal Precision Configuration OpenERP SA      
6.0.0.1 6.0.0.1 installed       
delivery        Sales & Purchases       Carriers and deliveries OpenERP SA      
6.0.1.0 6.0.1.0 installed       
document        Others  Integrated Document Management System   OpenERP SA      
6.0.2.0 6.0.2.0 installed       
google_map      Others  Google Map      OpenERP SA      6.0.1.0 6.0.1.0 
installed       
hr      Human Resources Human Resources OpenERP SA      6.0.1.1 6.0.1.1 
installed       
hr_attendance   Human Resources Attendances Of Employees        OpenERP SA      
6.0.1.1 6.0.1.1 installed       
hr_contract     Human Resources Human Resources Contracts       OpenERP SA      
6.0.1.0 6.0.1.0 installed       
hr_evaluation   Human Resources Human Resources Evaluation      OpenERP SA      
6.0.0.1 6.0.0.1 installed       
hr_expense      Human Resources Human Resources Expenses Tracking       OpenERP 
SA      6.0.1.0 6.0.1.0 installed       
hr_holidays     Human Resources Human Resources: Holidays management    OpenERP 
SA & Axelor     6.0.1.5 6.0.1.5 installed       
hr_payroll      Human Resources Human Resource Payroll  OpenERP SA      6.0.1.0 
6.0.1.0 installed       
hr_payroll_account      Human Resources Human Resource Payroll Accounting       
OpenERP SA      6.0.1.0 6.0.1.0 installed       
hr_recruitment  Human Resources HR - Recruitement       OpenERP SA      6.0.1.0 
6.0.1.0 installed       
hr_timesheet    Human Resources Human Resources (Timesheet encoding)    OpenERP 
SA      6.0.1.0 6.0.1.0 installed       
hr_timesheet_invoice    Accounting      Invoice on analytic lines       OpenERP 
SA      6.0.1.0 6.0.1.0 installed       
hr_timesheet_sheet      Human Resources Timesheets      OpenERP SA      6.0.1.0 
6.0.1.0 installed       
knowledge       Uncategorized   Knowledge Management System     OpenERP SA      
6.0.1.0 6.0.1.0 installed       
l10n_chart_au   Account Charts  Australia - Chart of Accounts   Tiny    6.0.1.0 
6.0.1.0 installed       
mail_gateway    Mail Service    Email Gateway System    OpenERP SA      6.0.1.0 
6.0.1.0 installed       
mrp     Production      Manufacturing Resource Planning OpenERP SA      6.0.1.1 
6.0.1.1 installed       
mrp_jit Production      MRP JIT OpenERP SA      6.0.1.0 6.0.1.0 installed       
mrp_operations  Production      Work Center Production start end workflow       
OpenERP SA      6.0.1.0 6.0.1.0 installed       
mrp_repair      Custom  Products Repairs Module - Manage All products Repairs   
OpenERP SA      6.0.1.0 6.0.1.0 installed       
mrp_subproduct  Production      MRP Sub Product - To produce several products 
from one production order OpenERP SA      6.0.1.0 6.0.1.0 installed       
multi_company   Custom  Multi Company   OpenERP SA,SYLEAM       6.0.1.0 6.0.1.0 
installed       
point_of_sale   Sales & Purchases       Point Of Sale   OpenERP SA      6.0.1.0 
6.0.1.0 installed       
process Base    Enterprise Process      OpenERP SA      6.0.1.0 6.0.1.0 
installed       
procurement     Production      Procurements    OpenERP SA      6.0.1.0 6.0.1.0 
installed       
product Inventory Control       Products & Pricelists   OpenERP SA      6.0.1.1 
6.0.1.1 installed       
product_expiry  Food Industries Products date of expiry OpenERP SA      6.0.1.0 
6.0.1.0 installed       
product_manufacturer    Manufacturer Industries Products Attributes & 
Manufacturers     OpenERP SA      6.0.1.0 6.0.1.0 installed       
product_margin  Custom  Margins in Product      OpenERP SA      6.0.1.0 6.0.1.0 
installed       
product_visible_discount        Sales & Purchases       Visible Discount        
OpenERP SA      6.0.1.0 6.0.1.0 installed       
profile_tools   Tools   Miscellaneous Tools     OpenERP SA      6.0.1.0 6.0.1.0 
installed       
project Projects & Services     Project Management      OpenERP SA      6.0.1.1 
6.0.1.1 installed       
project_gtd     Projects & Services     Getting Things Done - Time Management 
Module    OpenERP SA      6.0.1.0 6.0.1.0 installed       
project_issue   CRM & SRM       Issue Management in Project Management  OpenERP 
SA      6.0.1.0 6.0.1.0 installed       
project_long_term       Projects & Services     Long Term Project Management    
OpenERP SA      6.0.1.1 6.0.1.1 installed       
project_scrum   Information Technology  Scrum, Agile Development Method OpenERP 
SA      6.0.1.0 6.0.1.0 installed       
project_timesheet       Human Resources Project Timesheet       OpenERP SA      
6.0.1.0 6.0.1.0 installed       
purchase        Sales & Purchases       Purchase Management     OpenERP SA      
6.0.1.1 6.0.1.1 installed       
purchase_analytic_plans Sales & Purchases       Purchase Analytic Distribution 
Management       OpenERP SA      6.0.1.0 6.0.1.0 installed       
purchase_requisition    Sales & Purchases       Purchase - Purchase Requisition 
OpenERP SA      6.0.0.1 6.0.0.1 installed       
report_designer Tools   Reporting Tools OpenERP SA      6.0.1.0 6.0.1.0 
installed       
resource        Projects & Services     Resource        OpenERP SA      6.0.1.1 
6.0.1.1 installed       
sale    Sales & Purchases       Sales Management        OpenERP SA      6.0.1.0 
6.0.1.0 installed       
sale_crm        Sales & Purchases       Creates Sales order from Opportunity    
OpenERP SA      6.0.1.0 6.0.1.0 installed       
sale_journal    Sales & Purchases       Managing sales and deliveries by 
journal        OpenERP SA      6.0.1.0 6.0.1.0 installed       
sale_layout     Sales & Purchases       Sale Order Layout       OpenERP SA      
6.0.1.0 6.0.1.0 installed       
sale_margin     Sales & Purchases       Margins in Sales Order  OpenERP SA      
6.0.1.0 6.0.1.0 installed       
sale_order_dates        CRM & SRM       Sale Order Dates        OpenERP SA      
6.0.1.0 6.0.1.0 installed       
share   Generic Modules Sharing Tools   OpenERP SA      6.0.1.1 6.0.1.1 
installed       
stock   Inventory Control       Inventory Management    OpenERP SA      6.0.1.1 
6.0.1.1 installed       
stock_invoice_directly  Sales & Purchases       Invoice Picking Directly        
OpenERP SA      6.0.1.0 6.0.1.0 installed       
stock_no_autopicking    Production      Stock No Auto-Picking   OpenERP SA      
6.0.1.0 6.0.1.0 installed       
subscription    Others  Subscription and recurring operations   OpenERP SA      
6.0.1.0 6.0.1.0 installed       
survey  Tools   Survey Module   OpenERP SA      6.0.1.0 6.0.1.0 installed       
warning Tools   Module for Warnings form onchange Event OpenERP SA      6.0.1.0 
6.0.1.0 installed       
wiki    Others  Document Management - Wiki      OpenERP SA & Axelor     6.0.1.0 
6.0.1.0 installed       
wiki_faq        Others  Document Management - Wiki - FAQ        OpenERP SA      
6.0.1.0 6.0.1.0 installed       
wiki_quality_manual     Others  Document Management - Wiki - Quality Manual     
OpenERP SA      6.0.1.0 6.0.1.0 installed       
wiki_sale_faq   Others  Wiki -Sale - FAQ        OpenERP SA      6.0.1.0 6.0.1.0 
installed       
--------------------------------------------------------------------------------------------



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

Reply via email to