Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

The error when upgrading the module.

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
odoo16features
2 Antwoorden
5135 Weergaven
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
Annuleer
Avatar
Niyas Raphy (Walnut Software Solutions)
Beste antwoord

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
Annuleer
Nguyễn Anh Tuấn
Auteur

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
Auteur

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
Auteur

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
Auteur

thank you, I resoved issue

Avatar
e_sjuhain@sana.iq
Beste antwoord

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
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Opgelost
odoo16features
Avatar
Avatar
Avatar
Avatar
Avatar
5
sep. 25
24821
How to Add wizard under print button inside the form view.
odoo16features
Avatar
Avatar
Avatar
Avatar
3
aug. 25
3787
How to add @api.onchange in _get_view() method odoo 16
odoo16features
Avatar
Avatar
1
mei 25
3699
get all partners which are internal users or portal users odoo16
odoo16features
Avatar
Avatar
1
apr. 25
4542
How to add decoration color green with bold to a record with a single conditon
odoo16features
Avatar
Avatar
1
apr. 25
5379
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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