|
2025-08-25 03:03:28
|
ERROR
|
server
|
odoo.modules.registry:92
Failed to load registry
Traceback (most recent call last):
File "/data/build/odoo/odoo/tools/safe_eval.py", line 399, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1, in <module>
NameError: name 'obj' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/build/odoo/odoo/tools/convert.py", line 706, in _tag_root
f(rec)
File "/data/build/odoo/odoo/tools/convert.py", line 581, in _tag_record
f_val = _eval_xml(self, field, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/tools/convert.py", line 117, in _eval_xml
return safe_eval(a_eval, idref2)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/tools/convert.py", line 39, in <lambda>
safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/tools/safe_eval.py", line 413, in safe_eval
raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr))
ValueError: <class 'NameError'>: "name 'obj' is not defined" while evaluating
"obj().env['account.account'].search([('code', '=', '5412000002')], limit=1).id or False"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data/build/odoo/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/data/build/odoo/odoo/modules/loading.py", line 493, in load_modules
processed_modules += load_marked_modules(cr, graph,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/modules/loading.py", line 374, in load_marked_modules
loaded, processed = load_module_graph(
^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/modules/loading.py", line 233, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/data/build/odoo/odoo/modules/loading.py", line 73, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/data/build/odoo/odoo/tools/convert.py", line 771, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "/data/build/odoo/odoo/tools/convert.py", line 837, in convert_xml_import
obj.parse(doc.getroot())
File "/data/build/odoo/odoo/tools/convert.py", line 757, in parse
self._tag_root(de)
File "/data/build/odoo/odoo/tools/convert.py", line 706, in _tag_root
f(rec)
File "/data/build/odoo/odoo/tools/convert.py", line 719, in _tag_root
raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing /data/build/kmitl/kmitl_demo/data/product.category.xml:10, somewhere inside
<record id="product_category_office_equipment" model="product.category">
<field name="name">1 ครุภัณฑ์สำนักงาน</field>
<field name="parent_id" ref="product_category_equipment"/>
<field name="property_account_expense_categ_id" eval="obj().env['account.account'].search([('code', '=', '5412000002')], limit=1).id or False"/>
</record>
|
|
|
2025-08-25 03:03:28
|
CRITICAL
|
server
|
odoo.service.server:1364
Failed to initialize database `02658-16-0-without_demo`.
Traceback (most recent call last):
File "/data/build/odoo/odoo/tools/safe_eval.py", line 399, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1, in <module>
NameError: name 'obj' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/build/odoo/odoo/tools/convert.py", line 706, in _tag_root
f(rec)
File "/data/build/odoo/odoo/tools/convert.py", line 581, in _tag_record
f_val = _eval_xml(self, field, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/tools/convert.py", line 117, in _eval_xml
return safe_eval(a_eval, idref2)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/tools/convert.py", line 39, in <lambda>
safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/tools/safe_eval.py", line 413, in safe_eval
raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr))
ValueError: <class 'NameError'>: "name 'obj' is not defined" while evaluating
"obj().env['account.account'].search([('code', '=', '5412000002')], limit=1).id or False"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data/build/odoo/odoo/service/server.py", line 1327, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<decorator-gen-16>", line 2, in new
File "/data/build/odoo/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/data/build/odoo/odoo/modules/loading.py", line 493, in load_modules
processed_modules += load_marked_modules(cr, graph,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/modules/loading.py", line 374, in load_marked_modules
loaded, processed = load_module_graph(
^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/modules/loading.py", line 233, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/data/build/odoo/odoo/modules/loading.py", line 73, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/data/build/odoo/odoo/tools/convert.py", line 771, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "/data/build/odoo/odoo/tools/convert.py", line 837, in convert_xml_import
obj.parse(doc.getroot())
File "/data/build/odoo/odoo/tools/convert.py", line 757, in parse
self._tag_root(de)
File "/data/build/odoo/odoo/tools/convert.py", line 706, in _tag_root
f(rec)
File "/data/build/odoo/odoo/tools/convert.py", line 719, in _tag_root
raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing /data/build/kmitl/kmitl_demo/data/product.category.xml:10, somewhere inside
<record id="product_category_office_equipment" model="product.category">
<field name="name">1 ครุภัณฑ์สำนักงาน</field>
<field name="parent_id" ref="product_category_equipment"/>
<field name="property_account_expense_categ_id" eval="obj().env['account.account'].search([('code', '=', '5412000002')], limit=1).id or False"/>
</record>
|
|