Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Error printing invoices

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
printing
5046 Widoki
Awatar
Marta Mengual

 I've got an error printing any invoices or previewing.

Could you help me?

The error is:  

Odoo Server Error


Traceback (most recent call last):

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "<template>", line 1, in template_account_payment_portal_invoice_payment_5175

AttributeError: 'NoneType' object has no attribute 'state'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/home/odoo/src/odoo/12.0/addons/web/controllers/main.py", line 1671, in report_download

    response = self.report_routes(reportname, docids=docids, converter=converter)

  File "/home/odoo/src/odoo/12.0/odoo/http.py", line 517, in response_wrap

    response = f(*args, **kw)

  File "/home/odoo/src/odoo/12.0/addons/web/controllers/main.py", line 1612, in report_routes

    pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/ir_actions_report.py", line 682, in render_qweb_pdf

    html = self.with_context(context).render_qweb_html(res_ids, data=data)[0]

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/ir_actions_report.py", line 722, in render_qweb_html

    return self.render_template(self.report_name, data), 'html'

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/ir_actions_report.py", line 505, in render_template

    return view_obj.render_template(template, values)

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/ir_ui_view.py", line 1284, in render_template

    return self.browse(self.get_view_id(template)).render(values, engine)

  File "/home/odoo/src/odoo/12.0/addons/web_editor/models/ir_ui_view.py", line 27, in render

    return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/ir_ui_view.py", line 1293, in render

    return self.env[engine].render(self.id, qcontext)

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/ir_qweb.py", line 59, in render

    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/qweb.py", line 274, in render

    self.compile(template, options)(self, body.append, values or {})

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn

    raise e

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "<template>", line 1, in template_589_5093

  File "<template>", line 2, in body_call_content_5092

  File "<template>", line 3, in foreach_5091

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn

    raise e

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "<template>", line 1, in template_account_report_invoice_document_with_payments_5143

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn

    raise e

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "<template>", line 1, in template_web_external_layout_5170

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/qweb.py", line 353, in _compiled_fn

    raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)

odoo.addons.base.models.qweb.QWebException: 'NoneType' object has no attribute 'state'

Traceback (most recent call last):

  File "/home/odoo/src/odoo/12.0/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "<template>", line 1, in template_account_payment_portal_invoice_payment_5175

AttributeError: 'NoneType' object has no attribute 'state'


Error to render compiling AST

AttributeError: 'NoneType' object has no attribute 'state'

Template: account_payment.portal_invoice_payment

Path: /templates/t/div

Node: <div class="row" t-if="not tx_ids and invoice.state == 'open' and invoice.amount_total" id="portal_pay">

            <div class="modal fade" id="pay_with" role="dialog">

                <div class="modal-dialog modal-content">

                    <div class="modal-content">

                        <div class="modal-header">

                            <h3 class="modal-title">Pagar con</h3>

                            <button type="button" class="close" data-dismiss="modal">&amp;times;</button>

                        </div>

                        <div class="modal-body">

                            <div t-if="pms or acquirers" id="payment_method" class="text-left col-md-13">

                                <t t-call="payment.payment_tokens_list">

                                    <t t-set="mode" t-value="'payment'"/>

                                    <t t-set="partner_id" t-value="invoice.partner_id.id"/>

                                    <t t-set="success_url" t-value="invoice.get_portal_url()"/>

                                    <t t-set="error_url" t-value="invoice.get_portal_url()"/>

                                    <t t-set="access_token" t-value="access_token or ''"/>

                                    <t t-set="callback_method" t-value="''"/>

                                    <t t-set="form_action" t-value="'/invoice/pay/' + str(invoice.id) + '/s2s_token_tx/'"/>

                                    <t t-set="prepare_tx_url" t-value="'/invoice/pay/' + str(invoice.id) + '/form_tx/'"/>

                                    <t t-set="submit_txt">Pay Now</t>

                                    <t t-set="icon_class" t-value="'fa-lock'"/>

                                </t>

                            </div>

                        </div>

                    </div>

                </div>

            </div>

        </div>


-1
Awatar
Odrzuć
Nikhil Agarwal

Try upgrading the invoicing module once

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Product Labels Configuration
printing
Awatar
Awatar
Awatar
Awatar
4
wrz 25
7295
Odoo For Printing Industry
printing
Awatar
Awatar
1
kwi 23
2989
Howto setup a label/barcode printer?
printing
Awatar
0
cze 25
8542
Cloud printing After clicking "Pay Now" button
printing
Awatar
Awatar
2
maj 20
3271
How do I troubleshoot printing between POS and POSBOX? I used a docker image. Printers are recognized. No errors, nothing in the logs.
printing
Awatar
0
mar 17
3946
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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