← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 752523] Re: [V5.0.16] Etree Error : on general ledger printing

 

I have the same bug on OpenERP 6.0.3 and using the web client
If i try to print a Request for Quotation i find this error:

(<type 'exceptions.NameError'>, NameError("global name 'etree' is not
defined",), <traceback object at 0xaca47b6c>)


Exception: global name 'etree' is not defined
ERROR:web-services:[02]: Traceback (most recent call last):
ERROR:web-services:[03]:   File "/opt/openerp/server/bin/service/web_services.py", line 724, in go
ERROR:web-services:[04]:   File "/opt/openerp6/addons/report_aeroo/report_aeroo.py", line 619, in create
ERROR:web-services:[05]:     return fnct(cr, uid, ids, data, report_xml, context)
ERROR:web-services:[06]:   File "/opt/openerp6/addons/report_aeroo/report_aeroo.py", line 523, in create_source_pdf
ERROR:web-services:[07]:     return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
ERROR:web-services:[08]:   File "/opt/openerp6/addons/report_aeroo/report_aeroo.py", line 463, in create_single_pdf
ERROR:web-services:[09]:     processed_rml = self.preprocess_rml(etree.XML(rml),report_xml.report_type)
ERROR:web-services:[10]: NameError: global name 'etree' is not defined

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

Title:
  [V5.0.16] Etree Error : on general ledger printing

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  hello,

  When we try to print the general for a  single account , the client
  crash, this is the traceback from the client :

  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.16

  Last revision No. & ID :Bazaar Package not Found !Traceback (most
  recent call last):

  File "/srv/openerp/instances/openerp_aesa/src/server/bin/netsvc.py",
  line 299, in dispatch

  result = LocalService(service_name)(method, *params)

  File "/srv/openerp/instances/openerp_aesa/src/server/bin/netsvc.py",
  line 77, in __call__

  return getattr(self, method)(*params)

  File
  "/srv/openerp/instances/openerp_aesa/src/server/bin/service/web_services.py",
  line 577, in execute

  res = service.execute(db, uid, object, method, *args)

  File "/srv/openerp/instances/openerp_aesa/src/server/bin/osv/osv.py",
  line 58, in wrapper

  return f(self, dbname, *args, **kwargs)

  File "/srv/openerp/instances/openerp_aesa/src/server/bin/osv/osv.py",
  line 119, in execute

  res = pool.execute_cr(cr, uid, obj, method, *args, **kw)

  File "/srv/openerp/instances/openerp_aesa/src/server/bin/osv/osv.py",
  line 111, in execute_cr

  return getattr(object, method)(cr, uid, *args, **kw)

  File
  "/srv/openerp/instances/openerp_aesa/src/server/bin/addons/account_v6_reports_backport/wizard/account_report_general_ledger.py",
  line 60, in fields_view_get

  doc = etree.XML(res['arch'])

  NameError: global name 'etree' is not defined

  You reproduce by openerp the account chart , just sellect on account
  and click on print -> General Ledger


  I Think you have forget to include :

  from lxml import etree

  in account_v6_reports_backport/wizard/account_report_general_ledger.py

  Thanks for your help,

  Vincent

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


References