Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

The error when upgrading the module.

Naroči se

Get notified when there's activity on this post

This question has been flagged
odoo16features
2 Odgovori
5153 Prikazi
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
Opusti
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
Opusti
Nguyễn Anh Tuấn
Avtor

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
Avtor

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
Avtor

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
Avtor

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
Opusti
Enjoying the discussion? Don't just read, join in!

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

Prijavi
Related Posts Odgovori Prikazi Aktivnost
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
24966
How to Add wizard under print button inside the form view.
odoo16features
Avatar
Avatar
Avatar
Avatar
3
avg. 25
3814
How to add @api.onchange in _get_view() method odoo 16
odoo16features
Avatar
Avatar
1
maj 25
3717
get all partners which are internal users or portal users odoo16
odoo16features
Avatar
Avatar
1
apr. 25
4555
How to add decoration color green with bold to a record with a single conditon
odoo16features
Avatar
Avatar
1
apr. 25
5401
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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