Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
servermoduleserrorstart
4 Replies
7877 Zobrazenia
Avatar
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
Avatar
Zrušiť
Avatar
Shawn Varghese
Best Answer

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
Avatar
Zrušiť
Avatar
Rubén Cabrera
Best Answer

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
Avatar
Zrušiť
Shawn Varghese

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

Avatar
E.M.
Autor Best Answer

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
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
OpenERP Server Error
server modules error
Avatar
Avatar
1
mar 15
4221
Error when using UserError and ValidationError in odoo 14
server error
Avatar
Avatar
1
júl 25
5627
custom code: Internal Server Error Cause Corrected But Error Still Persists
server error
Avatar
Avatar
1
okt 24
3302
Please, help me to solve the next error
server error
Avatar
0
dec 23
2511
"ValueError: Wrong value for slide.channel.user_ids" when click upon e-learning module
server error
Avatar
0
apr 21
3542
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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