← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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

** Affects: openobject-client
     Importance: Undecided
         Status: New

** Description changed:

  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

-- 
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/752523

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

Status in OpenERP GTK Client:
  New

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



Follow ups

References