← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 623985] Re: label_slcs: error printing labels

 

Extra-addons modules will not be handled currently, as the focus of development is trunk.
Thanks.

** Changed in: openobject-addons
       Status: New => Won't Fix

** Changed in: openobject-addons
   Importance: Undecided => Wishlist

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

Status in OpenObject Addons Modules: Won't Fix

Bug description:
version 5.0.12 linux (Mako-0.2.5-py2.5.egg)

I can't print labels of type SLCS. With a simple label template for product.product model like:

${object.ean13}

i get this error when i try to print labels: ( AttributeError: type object 'object' has no attribute 'ean13' )

[2010-08-25 15:27:52,563] ERROR:web-services:[01]: 
[2010-08-25 15:27:52,563] ERROR:web-services:[02]: Environment Information : 
[2010-08-25 15:27:52,564] ERROR:web-services:[03]: System : Linux-2.6.24-27-generic-i686-with-debian-lenny-sid
[2010-08-25 15:27:52,564] ERROR:web-services:[04]: OS Name : posix
[2010-08-25 15:27:52,564] ERROR:web-services:[05]: Distributor ID:	Ubuntu
[2010-08-25 15:27:52,564] ERROR:web-services:[06]: Description:	Ubuntu 8.04.4 LTS
[2010-08-25 15:27:52,565] ERROR:web-services:[07]: Release:	8.04
[2010-08-25 15:27:52,565] ERROR:web-services:[08]: Codename:	hardy
[2010-08-25 15:27:52,565] ERROR:web-services:[09]: Operating System Release : 2.6.24-27-generic
[2010-08-25 15:27:52,565] ERROR:web-services:[10]: Operating System Version : #1 SMP Wed Mar 24 10:04:52 UTC 2010
[2010-08-25 15:27:52,566] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2010-08-25 15:27:52,566] ERROR:web-services:[12]: Operating System Locale : es_ES.UTF8
[2010-08-25 15:27:52,566] ERROR:web-services:[13]: Python Version : 2.5.2
[2010-08-25 15:27:52,566] ERROR:web-services:[14]: OpenERP-Server Version : 5.0.12
[2010-08-25 15:27:52,566] ERROR:web-services:[15]: Last revision No. & ID : 
[2010-08-25 15:27:52,567] ERROR:web-services:[16]: Exception: type object 'object' has no attribute 'ean13'
[2010-08-25 15:27:52,567] ERROR:web-services:[17]: Traceback (most recent call last):
[2010-08-25 15:27:52,567] ERROR:web-services:[18]:   File "/openerp/50/server/bin/addons/printjob/printjob.py", line 511, in print_thread
[2010-08-25 15:27:52,567] ERROR:web-services:[19]:     (result, format) = service.create(cr, uid, ids, datas, context)
[2010-08-25 15:27:52,567] ERROR:web-services:[20]:   File "/openerp/50/server/bin/report/report_sxw.py", line 365, in create
[2010-08-25 15:27:52,568] ERROR:web-services:[21]:     fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2010-08-25 15:27:52,568] ERROR:web-services:[22]:   File "/openerp/50/server/bin/report/report_sxw.py", line 427, in create_source_pdf
[2010-08-25 15:27:52,568] ERROR:web-services:[23]:     return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2010-08-25 15:27:52,568] ERROR:web-services:[24]:   File "/openerp/50/server/bin/addons/label_slcs/label_report_engine.py", line 81, in create_single_pdf
[2010-08-25 15:27:52,569] ERROR:web-services:[25]:     vals=vals, obj_list=obj_list, objects=objects, user=user)
[2010-08-25 15:27:52,569] ERROR:web-services:[26]:   File "/usr/lib/python2.5/site-packages/Mako-0.2.5-py2.5.egg/mako/template.py", line 138, in render_unicode
[2010-08-25 15:27:52,569] ERROR:web-services:[27]:     return runtime._render(self, self.callable_, args, data, as_unicode=True)
[2010-08-25 15:27:52,569] ERROR:web-services:[28]:   File "/usr/lib/python2.5/site-packages/Mako-0.2.5-py2.5.egg/mako/runtime.py", line 364, in _render
[2010-08-25 15:27:52,569] ERROR:web-services:[29]:     _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
[2010-08-25 15:27:52,570] ERROR:web-services:[30]:   File "/usr/lib/python2.5/site-packages/Mako-0.2.5-py2.5.egg/mako/runtime.py", line 381, in _render_context
[2010-08-25 15:27:52,570] ERROR:web-services:[31]:     _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
[2010-08-25 15:27:52,570] ERROR:web-services:[32]:   File "/usr/lib/python2.5/site-packages/Mako-0.2.5-py2.5.egg/mako/runtime.py", line 414, in _exec_template
[2010-08-25 15:27:52,570] ERROR:web-services:[33]:     callable_(context, *args, **kwargs)
[2010-08-25 15:27:52,571] ERROR:web-services:[34]:   File "memory:0x8f25dac", line 67, in render_body
[2010-08-25 15:27:52,571] ERROR:web-services:[35]:   File "/usr/lib/python2.5/site-packages/Mako-0.2.5-py2.5.egg/mako/runtime.py", line 307, in _include_file
[2010-08-25 15:27:52,571] ERROR:web-services:[36]:     callable_(ctx, **_kwargs_for_callable(callable_, context._orig, **kwargs))
[2010-08-25 15:27:52,571] ERROR:web-services:[37]:   File "usertemplate_txt", line 21, in render_body
[2010-08-25 15:27:52,571] ERROR:web-services:[38]: AttributeError: type object 'object' has no attribute 'ean13'

Do i need to use a different syntax in the template for this label type?

Eduardo