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

The error when upgrading the module.

Odoberať

Get notified when there's activity on this post

This question has been flagged
odoo16features
2 Replies
5087 Zobrazenia
Avatar
Nguyễn Anh Tuấn

I encountered an error while trying to upgrade the odoo module. Could anyone help me with how to fix it?


Traceback (most recent call last):
  File "C:\Odoo\odoo-16.0\odoo\tools\convert.py", line 698, in _tag_root
    f(rec)
  File "C:\Odoo\odoo-16.0\odoo\tools\convert.py", line 599, in _tag_record
    record = model._load_records([data], self.mode == 'update')
  File "C:\Odoo\odoo-16.0\odoo\models.py", line 4357, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "C:\Odoo\odoo-16.0\odoo\models.py", line 4279, in _load_records_create
    return self.create(values)
  File "", line 2, in create
  File "C:\Odoo\odoo-16.0\odoo\api.py", line 410, in _model_create_multi
    return create(self, arg)
  File "C:\Odoo\odoo-16.0\odoo\addons\base\models\res_users.py", line 1559, in create
    users = super(UsersView, self).create(new_vals_list)
  File "", line 2, in create
  File "C:\Odoo\odoo-16.0\odoo\api.py", line 410, in _model_create_multi
    return create(self, arg)
  File "C:\Odoo\odoo-16.0\odoo\addons\base\models\res_users.py", line 1269, in create
    return super(UsersImplied, self).create(vals_list)
  File "", line 2, in create
  File "C:\Odoo\odoo-16.0\odoo\api.py", line 410, in _model_create_multi
    return create(self, arg)
  File "C:\Odoo\odoo-16.0\odoo\addons\base\models\res_users.py", line 574, in create
    users = super(Users, self).create(vals_list)
  File "", line 2, in create
  File "C:\Odoo\odoo-16.0\odoo\api.py", line 410, in _model_create_multi
    return create(self, arg)
  File "C:\Odoo\odoo-16.0\odoo\addons\base\models\ir_fields.py", line 665, in create
    recs = super().create(vals_list)
  File "", line 2, in create
  File "C:\Odoo\odoo-16.0\odoo\api.py", line 410, in _model_create_multi
    return create(self, arg)
  File "C:\Odoo\odoo-16.0\odoo\models.py", line 3936, in create
    records = self._create(data_list)
  File "C:\Odoo\odoo-16.0\odoo\models.py", line 4117, in _create
    cr.execute(
  File "C:\Odoo\odoo-16.0\odoo\sql_db.py", line 315, in execute
    res = self._obj.execute(query, params)
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "res_users_login_key"
DETAIL:  Key (login)=(default) already exists.


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Odoo\odoo-16.0\odoo\http.py", line 1579, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "C:\Odoo\odoo-16.0\odoo\service\model.py", line 134, in retrying
    result = func()
  File "C:\Odoo\odoo-16.0\odoo\http.py", line 1608, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "C:\Odoo\odoo-16.0\odoo\http.py", line 1805, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "c:\odoo\odoo-16.0\addons\website\models\ir_http.py", line 235, in _dispatch
    response = super()._dispatch(endpoint)
  File "C:\Odoo\odoo-16.0\odoo\addons\base\models\ir_http.py", line 144, in _dispatch
    result = endpoint(**request.params)
  File "C:\Odoo\odoo-16.0\odoo\http.py", line 698, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "c:\odoo\odoo-16.0\addons\web\controllers\dataset.py", line 46, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "c:\odoo\odoo-16.0\addons\web\controllers\dataset.py", line 33, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Odoo\odoo-16.0\odoo\api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "C:\Odoo\odoo-16.0\odoo\api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "", line 2, in button_immediate_upgrade
  File "C:\Odoo\odoo-16.0\odoo\addons\base\models\ir_module.py", line 76, in check_and_log
    return method(self, *args, **kwargs)
  File "C:\Odoo\odoo-16.0\odoo\addons\base\models\ir_module.py", line 678, in button_immediate_upgrade
    return self._button_immediate_function(type(self).button_upgrade)
  File "C:\Odoo\odoo-16.0\odoo\addons\base\models\ir_module.py", line 615, in _button_immediate_function
    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "", line 2, in new
  File "C:\Odoo\odoo-16.0\odoo\tools\func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "C:\Odoo\odoo-16.0\odoo\modules\registry.py", line 91, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "C:\Odoo\odoo-16.0\odoo\modules\loading.py", line 423, in load_modules
    loaded_modules, processed_modules = load_module_graph(
  File "C:\Odoo\odoo-16.0\odoo\modules\loading.py", line 230, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package)
  File "C:\Odoo\odoo-16.0\odoo\modules\loading.py", line 71, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
  File "C:\Odoo\odoo-16.0\odoo\tools\convert.py", line 763, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate)
  File "C:\Odoo\odoo-16.0\odoo\tools\convert.py", line 829, in convert_xml_import
    obj.parse(doc.getroot())
  File "C:\Odoo\odoo-16.0\odoo\tools\convert.py", line 749, in parse
    self._tag_root(de)
  File "C:\Odoo\odoo-16.0\odoo\tools\convert.py", line 698, in _tag_root
    f(rec)
  File "C:\Odoo\odoo-16.0\odoo\tools\convert.py", line 711, in _tag_root
    raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing file:/c:/odoo/odoo-16.0/odoo/addons/base/data/res_users_data.xml:27, somewhere inside

            Default User Template
            default
            
        

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    at makeErrorFromResponse (http://elearning.zod.vn:8069/web/assets/debug/web.assets_backend.js:10149:19) (/web/static/src/core/network/rpc_service.js:34)
    at XMLHttpRequest. (http://elearning.zod.vn:8069/web/assets/debug/web.assets_backend.js:10202:27) (/web/static/src/core/network/rpc_service.js:87)


0
Avatar
Zrušiť
Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

It will be nice if you specify the name of the module that you are updating ? if it is not the base module, can you take a  backup and upgrade the base module and see if the issue get resolved or not.


Also, you can make sure that you are using the latest source code of odoo 16.

Thanks

0
Avatar
Zrušiť
Nguyễn Anh Tuấn
Autor

I am upgrading the 'Base' module. Other modules are reporting errors when I upgrade. Can you guide me on how to fix the issue?

Nguyễn Anh Tuấn
Autor

Hi Niyas Raphy

Niyas Raphy (Walnut Software Solutions)

if it is not production or live db, can you continue by creating a new db ?
if you have stick on with same db, just pull the latest source code and try upgrading base module again and see what happens

Nguyễn Anh Tuấn
Autor

Can you guide me on how to use the new source code and use the old database?"

Niyas Raphy (Walnut Software Solutions)

https://www.youtube.com/watch?v=6wo4Hr889PE

Nguyễn Anh Tuấn
Autor

thank you, I resoved issue

Avatar
e_sjuhain@sana.iq
Best Answer

In my case, it turned out there was a cron that a previous developer added to the system that was always running and never getting done. I inspected the Odoo log file for ir_cron logs. A pair of starting/done logs look like so:

2024-05-30 10:09:29,891 481994 INFO HalaFTTH_db odoo.addons.base.models.ir_cron: Starting job Jobs Garbage Collector.

2024-05-30 10:09:29,895 481994 INFO HalaFTTH_db odoo.addons.base.models.ir_cron: Job Jobs Garbage Collector done.

However, my long running cron only had a 'Starting' but never a 'done' log line. When I turned off that cron, the module upgraded normally. 

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
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Solved
odoo16features
Avatar
Avatar
Avatar
Avatar
Avatar
5
sep 25
24625
How to Add wizard under print button inside the form view.
odoo16features
Avatar
Avatar
Avatar
Avatar
3
aug 25
3758
How to add @api.onchange in _get_view() method odoo 16
odoo16features
Avatar
Avatar
1
máj 25
3660
get all partners which are internal users or portal users odoo16
odoo16features
Avatar
Avatar
1
apr 25
4508
How to add decoration color green with bold to a record with a single conditon
odoo16features
Avatar
Avatar
1
apr 25
5358
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