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

Odoo does not start, stuck on previous bad XML syntax / Too many redirects

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
servermoduleserrorstart
4 Odpowiedzi
7883 Widoki
Awatar
E.M.

I am writting a new module which includes views customization through XML.

While writting the XML, it seems that I have referenced a non-existing field in XML, but now I can not start odoo again, even when I change the XML file.

Is it possible to fully deinstall the module from command line? Is it possible to stuck the server becuase of a bad module?

Error context:
View `sale.margin.percent.view.form`
[view_id: 797, xml_id: sale_margin_percent.sale_margin_percent_u5, model: sale.order, parent_id: 794]
2015-11-05 17:25:54,320 661 INFO test1 werkzeug: 127.0.0.1 - - [05/Nov/2015 17:25:54] "GET /web?db=test1 HTTP/1.1" 302 -
2015-11-05 17:25:54,628 661 INFO test1 openerp.modules.loading: loading 1 modules...
2015-11-05 17:25:54,644 661 INFO test1 openerp.modules.loading: 1 modules loaded in 0.02s, 0 queries
2015-11-05 17:25:54,725 661 INFO test1 openerp.modules.loading: loading 63 modules...
2015-11-05 17:25:56,598 661 INFO test1 openerp.modules.module: module sale_margin_percent: creating or updating database tables
2015-11-05 17:25:56,683 661 INFO test1 openerp.modules.loading: loading sale_margin_percent/sale_margin_percent.xml
2015-11-05 17:25:57,011 661 ERROR test1 openerp.addons.base.ir.ir_ui_view: Element '<xpath expr="//field[@name='order_line']/tree/field[@name='purchase_price']">' cannot be located in parent view

Error context:
View `sale.margin.percent.view.form`
[view_id: 797, xml_id: sale_margin_percent.sale_margin_percent_u5, model: sale.order, parent_id: 794]
2015-11-05 17:25:57,014 661 INFO test1 werkzeug: 127.0.0.1 - - [05/Nov/2015 17:25:57] "GET /web?db=test1 HTTP/1.1" 302 -
2015-11-05 17:25:57,489 661 INFO test1 openerp.modules.loading: loading 1 modules...
2015-11-05 17:25:57,507 661 INFO test1 openerp.modules.loading: 1 modules loaded in 0.02s, 0 queries
2015-11-05 17:25:57,593 661 INFO test1 openerp.modules.loading: loading 63 modules...
2015-11-05 17:25:59,681 661 INFO test1 openerp.modules.module: module sale_margin_percent: creating or updating database tables
2015-11-05 17:25:59,764 661 INFO test1 openerp.modules.loading: loading sale_margin_percent/sale_margin_percent.xml
2015-11-05 17:26:00,105 661 ERROR test1 openerp.addons.base.ir.ir_ui_view: Element '<xpath expr="//field[@name='order_line']/tree/field[@name='purchase_price']">' cannot be located in parent view

 The XML no longer has that part of code caussing the issue. The problem is that at the end I get "Too many redirects" in Chrome and I can no longer access the application.

0
Awatar
Odrzuć
Awatar
Shawn Varghese
Najlepsza odpowiedź

After making the change, did you try updating the module via command line:

./openerp-server -u <your_module_name> -d test1

This should probably work.

If not, you can also try querying the module list table:

select state from ir_module_module where name='module_name';

The state will probably be 'installed'

You could try setting it to 'uninstalled':

update ir_module_module set state='uninstalled' where name='module_name';

Then try restarting the server.i

This should only be done on a Dev server - it is more a hack than a solution. Just updating the module through command line should work.

 


2
Awatar
Odrzuć
Awatar
Rubén Cabrera
Najlepsza odpowiedź

If none of the options from Shawn Varghese work, try stopping the server and commenting out in the __openerp__.py file the view causing the problem:

"data": [

"views/name_of_view_raising_errors.xml"

],


Then start the server again, fix the code and upgrade the module when you are done.  


1
Awatar
Odrzuć
Shawn Varghese

Oh yea, you're right ! I missed this out.... this should probably be the first thing to try

Awatar
E.M.
Autor Najlepsza odpowiedź

Thanks both of you. I finally managed to startup the server by modifying the code but keeping the modification chunks previously defined (instead of removing them up). It seems that once certain code is in place, you can only modify in a way where the previous change is updated. Weird behaviour.

I keep your solutions for future as I guess this will happen from time to time.

0
Awatar
Odrzuć
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ść
OpenERP Server Error
server modules error
Awatar
Awatar
1
mar 15
4221
Error when using UserError and ValidationError in odoo 14
server error
Awatar
Awatar
1
lip 25
5627
custom code: Internal Server Error Cause Corrected But Error Still Persists
server error
Awatar
Awatar
1
paź 24
3302
Please, help me to solve the next error
server error
Awatar
0
gru 23
2512
"ValueError: Wrong value for slide.channel.user_ids" when click upon e-learning module
server error
Awatar
0
kwi 21
3542
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