Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consulting
    • Accounting Firm
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Solar Energy Systems
    • Shoe Maker
    • Serveis de neteja
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Webkit Reports Tracebacks

Subscriure's

Get notified when there's activity on this post

This question has been flagged
v7webkitreportstraceback
3 Respostes
8035 Vistes
Avatar
Dave Burkholder

I've installed the following modules in my OpenERP 7 server, running on Ubuntu 12.04.

account_financial_report_webkit
base_headers_webkit
invoice_webkit
report_webkit
sale_order_webkit

Unfortunately, I'm getting errors on every webkit report I try to print. Here are the trackebacks I'm getting:

#------------------------------------
Sales Order Report
#------------------------------------
Webkit render!

Traceback (most recent call last):
File "/opt/openerp/7.0/addons/report_webkit/webkit_report.py", line 278, in create_single_pdf
*self.parser_instance.localcontext)
File "/usr/lib/python2.7/dist-packages/mako/template.py", line 302, in render return runtime._render(self, self.callable_, args, data)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 660, in _render *
_kwargs_for_callable(callable_, data))
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 692, in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 718, in _exec_template callable_(context, args, *kwargs)
File "memory:0x7f573c08b210", line 36, in render_body

File "/opt/openerp/7.0/server/openerp/osv/orm.py", line 486, in __getattr__ raise AttributeError(e)
AttributeError: "Field 'address' does not exist in object 'browse_record(res.partner, 1)'"

#------------------------------------
Customer Invoice
#------------------------------------
Webkit render!

Traceback (most recent call last):
File "/opt/openerp/7.0/addons/report_webkit/webkit_report.py", line 266, in create_single_pdf
**self.parser_instance.localcontext)
File "/usr/lib/python2.7/dist-packages/mako/template.py", line 302, in render return runtime._render(self, self.callable_, args, data)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 661, in _render return context._pop_buffer().getvalue()
File "/usr/lib/python2.7/dist-packages/mako/util.py", line 134, in getvalue
return self.delim.join(self.data).encode(self.encoding, self.errors)
TypeError: sequence item 233: expected string or Unicode, bool found

#------------------------------------
Supplier Invoice
#------------------------------------
Webkit render!

Traceback (most recent call last):
File "/opt/openerp/7.0/addons/report_webkit/webkit_report.py", line 266, in create_single_pdf
**self.parser_instance.localcontext)
File "/usr/lib/python2.7/dist-packages/mako/template.py", line 302, in render return runtime._render(self, self.callable_, args, data)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 661, in _render return context._pop_buffer().getvalue()
File "/usr/lib/python2.7/dist-packages/mako/util.py", line 134, in getvalue return self.delim.join(self.data).encode(self.encoding, self.errors)
TypeError: sequence item 163: expected string or Unicode, bool found

#------------------------------------

So, my webkit deployment is not going well at all. :-| Any suggestions for me?

0
Avatar
Descartar
Dave Burkholder
Autor

Anybody? Anything?? Camptocamp, are you there?

Avatar
David Béal
Best Answer

Hello,

please choose this branch

https://code.launchpad.net/~sale-core-editors/sale-reports/7.0 (for v7)

instead of https://code.launchpad.net/~sale-core-editors/sale-reports/ (for v6.1)

The bug : AttributeError: "Field 'address' does not exist in object 'browse_record(res.partner, 1)'" prove that it is 6.1 version (not the same party model : 2 tables in v6.1, 1 for v7, no more field address in 'res.partner')

Do not remove rml

1
Avatar
Descartar
Dave Burkholder
Autor

I am using the 7.0 branches. The contents of branch.conf for the sale-reports module: parent_location = http://bazaar.launchpad.net/~sale-core-editors/sale-reports/7.0/

The contents of branch.conf for the account-invoice-report module: parent_location = http://bazaar.launchpad.net/~account-core-editors/account-invoice-report/7.0/

Avatar
Reinhard Schneidewind
Best Answer

Hi,

I had a similar error when printing invoices. I could solve it with a change of the account_invoice.mako template. Search at the bottom of the file:

    %if inv.fiscal_position :
        <br/>
        <p class="std_text">
        ${inv.fiscal_position.note | n}
        </p>
    %endif

And replace it with the following code:

%if inv.fiscal_position and inv.fiscal_position.note :
    <br/>
    <p class="std_text">
    ${inv.fiscal_position.note | n}
    </p>
%endif

As you can see, I've added a further argument in the if statement. The attribute inv.fiscal_position.note seemed to return a boolean False.

Best regards,

Reinhard

0
Avatar
Descartar
Avatar
Michael Meierhoff
Best Answer

I had the same problem.

The solution is to remove the selection in the check box "Add RML Header" under "Settings -> Technical -> Actions -> Reports" in the respective report.

It seems that Webkit Report and RML Header do not work together. You can select the Webkit header in the webkit tab.

0
Avatar
Descartar
Dave Burkholder
Autor

I tried that and now get this traceback (abridged): File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 661, in _render return context._pop_buffer().getvalue() File "/usr/lib/python2.7/dist-packages/mako/util.py", line 134, in getvalue return self.delim.join(self.data).encode(self.encoding, self.errors) TypeError: sequence item 231: expected string or Unicode, bool found

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Where to get sample reports for webkit in V7
v7 webkit reports
Avatar
Avatar
Avatar
2
de març 15
7177
how to set 0 margins in webkit reports in v7?
v7 webkit reports
Avatar
Avatar
Avatar
2
de març 15
6939
[7.0] Webkit Background
image v7 webkit reports
Avatar
Avatar
1
de març 15
5648
Report not showing up
v7 reports
Avatar
1
de març 15
6718
sale_order_webkit cann't be installed
webkit traceback
Avatar
0
de març 15
4732
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now