Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

The error when upgrading the module.

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
odoo16features
2 Răspunsuri
5109 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
Imagine profil
Niyas Raphy (Walnut Software Solutions)
Cel mai bun răspuns

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
Imagine profil
Abandonează
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

Imagine profil
e_sjuhain@sana.iq
Cel mai bun răspuns

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

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Rezolvat
odoo16features
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
5
sept. 25
24657
How to Add wizard under print button inside the form view.
odoo16features
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
aug. 25
3761
How to add @api.onchange in _get_view() method odoo 16
odoo16features
Imagine profil
Imagine profil
1
mai 25
3667
get all partners which are internal users or portal users odoo16
odoo16features
Imagine profil
Imagine profil
1
apr. 25
4514
How to add decoration color green with bold to a record with a single conditon
odoo16features
Imagine profil
Imagine profil
1
apr. 25
5362
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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