Questo sito utilizza cookie per le proprie funzionalità e per inviarti pubblicità e servizi in linea con le tue preferenze. Chiudendo questo banner, scorrendo questa pagina o cliccando qualunque suo elemento acconsenti all’uso dei cookie.

Accedendo al link http://www.odoo-italia.org/index.php/home/cookie-policy puoi leggere in dettaglio le modalità di trattamento dei cookie da parte dell'Associazione Odoo Italia.

Benvenuto, Ospite
Nome utente: Password: Ricordami
Ricordati di dichiarare la versione di Odoo a cui riferisce la domanda

ARGOMENTO: Webkit: no attribute 'embed_company_logo'

Webkit: no attribute 'embed_company_logo' 2 Anni 7 Mesi fa #24511

  • External
  • Avatar di External
  • Offline
  • Fresh Boarder
  • Messaggi: 19
  • Karma: 0
OpenErp 7

In Magazzino -> Ordini di consegna
Seleziono un ordine di consegna
Clicco su Stampa -> DDT

Ricevo il seguente errore
2016-06-30 14:53:30,884 11268 ERROR vx-db2 openerp.service.web_services: Exception: (u'Webkit render!', u'\n\nTraceback (most recent call last):\n  File "/home/odoo/lp/openerp/openerp/addons/report_webkit/webkit_report.py", line 278, in create_single_pdf\n    **parser_instance.localcontext)\n  File "/usr/lib/python2.7/dist-packages/mako/template.py", line 445, in render\n    return runtime._render(self, self.callable_, args, data)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 829, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 864, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 890, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0x7f81f1cc5050", line 24, in render_body\n    <td>${helper.embed_company_logo()|safe}</td>\nAttributeError: \'WebKitHelper\' object has no attribute \'embed_company_logo\'\n')
Traceback (most recent call last):
  File "/home/odoo/lp/openerp/openerp/service/web_services.py", line 712, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/home/odoo/lp/openerp/openerp/addons/report_webkit/webkit_report.py", line 332, in create
    result = self.create_source_pdf(cursor, uid, ids, data, report_xml, context)
  File "/home/odoo/lp/openerp/openerp/report/report_sxw.py", line 511, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/home/odoo/lp/openerp/openerp/addons/report_webkit/webkit_report.py", line 281, in create_single_pdf
    exceptions.text_error_template().render())
except_osv: (u'Webkit render!', u'\n\nTraceback (most recent call last):\n  File "/home/odoo/lp/openerp/openerp/addons/report_webkit/webkit_report.py", line 278, in create_single_pdf\n    **parser_instance.localcontext)\n  File "/usr/lib/python2.7/dist-packages/mako/template.py", line 445, in render\n    return runtime._render(self, self.callable_, args, data)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 829, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 864, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 890, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0x7f81f1cc5050", line 24, in render_body\n    <td>${helper.embed_company_logo()|safe}</td>\nAttributeError: \'WebKitHelper\' object has no attribute \'embed_company_logo\'\n')
2016-06-30 14:53:30,928 11268 ERROR vx-db2 openerp.netsvc: Webkit render!
Traceback (most recent call last):
  File "/home/odoo/lp/openerp/openerp/addons/report_webkit/webkit_report.py", line 278, in create_single_pdf
    **parser_instance.localcontext)
  File "/usr/lib/python2.7/dist-packages/mako/template.py", line 445, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 829, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 864, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 890, in _exec_template
    callable_(context, *args, **kwargs)
  File "memory:0x7f81f1cc5050", line 24, in render_body
    <td>${helper.embed_company_logo()|safe}</td>
AttributeError: 'WebKitHelper' object has no attribute 'embed_company_logo'
Traceback (most recent call last):
  File "/home/odoo/lp/openerp/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/odoo/lp/openerp/openerp/service/web_services.py", line 654, in dispatch
    res = fn(db, uid, *params)
  File "/home/odoo/lp/openerp/openerp/service/web_services.py", line 760, in exp_report_get
    return self._check_report(report_id)
  File "/home/odoo/lp/openerp/openerp/service/web_services.py", line 738, in _check_report
    netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
  File "/home/odoo/lp/openerp/openerp/netsvc.py", line 71, in abort_response
    raise openerp.osv.osv.except_osv(description, details)
except_osv: (u'Webkit render!', u'\n\nTraceback (most recent call last):\n  File "/home/odoo/lp/openerp/openerp/addons/report_webkit/webkit_report.py", line 278, in create_single_pdf\n    **parser_instance.localcontext)\n  File "/usr/lib/python2.7/dist-packages/mako/template.py", line 445, in render\n    return runtime._render(self, self.callable_, args, data)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 829, in _render\n    **_kwargs_for_callable(callable_, data))\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 864, in _render_context\n    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n  File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 890, in _exec_template\n    callable_(context, *args, **kwargs)\n  File "memory:0x7f81f1cc5050", line 24, in render_body\n    <td>${helper.embed_company_logo()|safe}</td>\nAttributeError: \'WebKitHelper\' object has no attribute \'embed_company_logo\'\n')

wkhtmltopdf ver. 0.12.1_linux-precise-amd64 in /usr/bin/

In Modifica dati aziendali -> Webkit
E' presente una sample Image (camtocamp_logo)

Ogni suggerimento è benvenuto,
grazie.
Ultima modifica: 2 Anni 7 Mesi fa da External.
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.

Webkit: no attribute 'embed_company_logo' 2 Anni 7 Mesi fa #24529

  • External
  • Avatar di External
  • Offline
  • Fresh Boarder
  • Messaggi: 19
  • Karma: 0
Ho "risolto" andando in
Configurazione -> Azioni -> Reports
Poi: DDT -> Webkit -> Intestazioni Webkit

e selezionando: Base Minimum Portrait Header

In questo modo purtroppo, il DDT stampato è privo di logo/header.
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
Tempo creazione pagina: 0.142 secondi

Odoo Italia Associazione - C.F: 94200470485 - Sede: Viale dei Cadorna, 83 - Firenze - Italy

Protected by R Antispam