تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
160 أدوات العرض

I am trying to add the sales app in the community edition of odoo, build 18, i cant continue evaluating the community edition if this error still continues.


Odoo Server Error

RPC_ERROR

Odoo Server Error

Occured on 192.168.1.163:8069 on model ir.module.module on 2025-09-11 07:34:17 GMT

Traceback (most recent call last):
  File "C:\odoo\server\odoo\tools\convert.py", line 544, in _tag_root
    f(rec)
  File "C:\odoo\server\odoo\tools\convert.py", line 374, in _tag_record
    raise Exception("Cannot update missing record %r" % xid)
Exception: Cannot update missing record 'digest.digest_digest_default'

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

Traceback (most recent call last):
  File "C:\odoo\server\odoo\http.py", line 2144, in _transactioning
    return service_model.retrying(func, env=self.env)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\service\model.py", line 156, in retrying
    result = func()
             ^^^^^^
  File "C:\odoo\server\odoo\http.py", line 2111, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\http.py", line 2359, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\addons\base\models\ir_http.py", line 333, in _dispatch
    result = endpoint(**request.params)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\http.py", line 754, in route_wrapper
    result = endpoint(self, *args, **params_ok)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\addons\web\controllers\dataset.py", line 42, in call_button
    action = call_kw(request.env[model], method, args, kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\api.py", line 535, in call_kw
    result = getattr(recs, name)(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\python\Lib\site-packages\decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\addons\base\models\ir_module.py", line 75, in check_and_log
    return method(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\addons\base\models\ir_module.py", line 487, in button_immediate_install
    return self._button_immediate_function(self.env.registry[self._name].button_install)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\addons\base\models\ir_module.py", line 611, in _button_immediate_function
    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\python\Lib\site-packages\decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\tools\func.py", line 97, in locked
    return func(inst, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\modules\registry.py", line 129, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "C:\odoo\server\odoo\modules\loading.py", line 489, in load_modules
    processed_modules += load_marked_modules(env, graph,
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\modules\loading.py", line 365, in load_marked_modules
    loaded, processed = load_module_graph(
                        ^^^^^^^^^^^^^^^^^^
  File "C:\odoo\server\odoo\modules\loading.py", line 228, in load_module_graph
    load_data(env, idref, mode, kind='data', package=package)
  File "C:\odoo\server\odoo\modules\loading.py", line 72, in load_data
    tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
  File "C:\odoo\server\odoo\tools\convert.py", line 615, in convert_file
    convert_xml_import(env, module, fp, idref, mode, noupdate)
  File "C:\odoo\server\odoo\tools\convert.py", line 686, in convert_xml_import
    obj.parse(doc.getroot())
  File "C:\odoo\server\odoo\tools\convert.py", line 601, in parse
    self._tag_root(de)
  File "C:\odoo\server\odoo\tools\convert.py", line 544, in _tag_root
    f(rec)
  File "C:\odoo\server\odoo\tools\convert.py", line 557, in _tag_root
    raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing file:/c:/odoo/server/odoo/addons/account/data/digest_data.xml:4, somewhere inside
<record id="digest.digest_digest_default" model="digest.digest">
            <field name="kpi_account_total_revenue">True</field>
        </record>

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    RPC_ERROR
        at makeErrorFromResponse (http://192.168.1.163:8069/web/assets/debug/web.assets_web.js:29859:19)
        at XMLHttpRequest.<anonymous> (http://192.168.1.163:8069/web/assets/debug/web.assets_web.js:29913:27)

الصورة الرمزية
إهمال
الكاتب

Thank you so much, thanks to Komal i managed to get it sorted.

أفضل إجابة

hello,
some one in your db deleted the digest_digest_default record
so it is giving error
you need to update digest module first then you can update/install sales app

الصورة الرمزية
إهمال
الكاتب

This solved the error. Thank you very much @Komal.

أفضل إجابة

Hi,

Someone has accidentally deleted the record named 'Your Odoo Periodic Digest' (xml_id = digest_digest_default), which is a record added through code. When you install the sales module, the account module will also be installed automatically. At that time, the account module tries to upgrade the 'Your Odoo Periodic Digest' record, which is not present in your database. To fix this, you need to upgrade the digest module first, and then install the sales app.


Hope it helps.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
سبتمبر 25
392
3
سبتمبر 25
453
4
أغسطس 25
1595
Block sale. تم الحل
3
أغسطس 25
595
2
أغسطس 25
693