← Back to team overview

openerp-india team mailing list archive

[Bug 591096] Re: [account]Crash when printing aged partner balance

 

** Changed in: openobject-addons
       Status: Fix Released => New

** Changed in: openobject-addons
    Milestone: 5.0.12 => None

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/591096

Title:
  [account]Crash when printing aged partner balance

Status in OpenERP Addons (modules):
  New

Bug description:
  From a simple association profile, with the Swiss chart installed, you
  get the following error log when trying to print the aged partner
  balance:

  Environment Information : 
  System : Windows-XP-5.1.2600-SP3
  OS Name : nt
  Operating System Release : XP
  Operating System Version : 5.1.2600
  Operating System Architecture : 32bit
  Operating System Locale : fr_CH.cp1252
  Python Version : 2.5.2
  OpenERP-Client Version : 5.0.6
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 683, in go
      (result, format) = obj.create(cr, uid, ids, datas, context)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 364, in create
      fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 426, in create_source_pdf
      return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 447, in create_single_pdf
      pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/interface.py", line 183, in create_pdf
      obj.render()
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/render.py", line 50, in render
      result = self._render()
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml.py", line 41, in _render
      return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 790, in parseNode
      r.render(fp)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 204, in render
      pt_obj.render(el)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 780, in render
      fis += r.render(node_story)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 709, in render
      return process_story(node_story)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 702, in process_story
      flow = self._flowable(node)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 616, in _flowable
      return  self._table(node)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 483, in _table
      for tr in childs:
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/utils.py", line 62, in _child_get
      for ctx in eval(n.get('rml_loop'),{}, self.localcontext):
    File "<string>", line 1, in <module>
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/account/report/aged_trial_balance.py", line 77, in _get_lines
      partner_ids = tuple(map(attrgetter('id'), partners))
  NameError: global name 'attrgetter' is not defined

  Searching for the name attrgetter in the .py files, none is found in
  addons indeed.

  Server and addons are up to date on 07-06-2010

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/591096/+subscriptions