Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1542 Vistas

Hello,

 I am doing an inheritance to modify the product_id to not required in the expenses, but I get this error, can someone help me? thank you (odoo15)

Traceback (most recent call last):

File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_http\.py",\ line\ 237,\ in\ _dispatch

\ \ \ \ result\ =\ request\.dispatch\(\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/http\.py",\ line\ 698,\ in\ dispatch

\ \ \ \ result\ =\ self\._call_function\(\*\*self\.params\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/http\.py",\ line\ 368,\ in\ _call_function

\ \ \ \ return\ checked_call\(self\.db,\ \*args,\ \*\*kwargs\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/service/model\.py",\ line\ 94,\ in\ wrapper

\ \ \ \ return\ f\(dbname,\ \*args,\ \*\*kwargs\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/http\.py",\ line\ 357,\ in\ checked_call

\ \ \ \ result\ =\ self\.endpoint\(\*a,\ \*\*kw\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/http\.py",\ line\ 921,\ in\ __call__

\ \ \ \ return\ self\.method\(\*args,\ \*\*kw\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/http\.py",\ line\ 546,\ in\ response_wrap

\ \ \ \ response\ =\ f\(\*args,\ \*\*kw\)

\ \ File\ "/opt/odoo/auto/addons/web/controllers/main\.py",\ line\ 1328,\ in\ call_button

\ \ \ \ action\ =\ self\._call_kw\(model,\ method,\ args,\ kwargs\)

\ \ File\ "/opt/odoo/auto/addons/web/controllers/main\.py",\ line\ 1316,\ in\ _call_kw

\ \ \ \ return\ call_kw\(request\.env\[model\],\ method,\ args,\ kwargs\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/api\.py",\ line\ 464,\ in\ call_kw

\ \ \ \ result\ =\ _call_kw_multi\(method,\ model,\ args,\ kwargs\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/api\.py",\ line\ 451,\ in\ _call_kw_multi

\ \ \ \ result\ =\ method\(recs,\ \*args,\ \*\*kwargs\)

\ \ File\ "",\ line\ 2,\ in\ button_immediate_install

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_module\.py",\ line\ 72,\ in\ check_and_log

\ \ \ \ return\ method\(self,\ \*args,\ \*\*kwargs\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_module\.py",\ line\ 451,\ in\ button_immediate_install

\ \ \ \ return\ self\._button_immediate_function\(type\(self\)\.button_install\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_module\.py",\ line\ 568,\ in\ _button_immediate_function

\ \ \ \ registry\ =\ modules\.registry\.Registry\.new\(self\._cr\.dbname,\ update_module=True\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/modules/registry\.py",\ line\ 87,\ in\ new

\ \ \ \ odoo\.modules\.load_modules\(registry,\ force_demo,\ status,\ update_module\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/modules/loading\.py",\ line\ 474,\ in\ load_modules

\ \ \ \ processed_modules\ \+=\ load_marked_modules\(cr,\ graph,

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/modules/loading\.py",\ line\ 363,\ in\ load_marked_modules

\ \ \ \ loaded,\ processed\ =\ load_module_graph\(

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/modules/loading\.py",\ line\ 222,\ in\ load_module_graph

\ \ \ \ load_data\(cr,\ idref,\ mode,\ kind='data',\ package=package\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/modules/loading\.py",\ line\ 69,\ in\ load_data

\ \ \ \ tools\.convert_file\(cr,\ package\.name,\ filename,\ idref,\ mode,\ noupdate,\ kind\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/tools/convert\.py",\ line\ 748,\ in\ convert_file

\ \ \ \ convert_xml_import\(cr,\ module,\ fp,\ idref,\ mode,\ noupdate\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/tools/convert\.py",\ line\ 797,\ in\ convert_xml_import

\ \ \ \ relaxng\.assert_\(doc\)

\ \ File\ "src/lxml/etree\.pyx",\ line\ 3633,\ in\ lxml\.etree\._Validator\.assert_

Exception


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


Traceback\ \(most\ recent\ call\ last\):

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/http\.py",\ line\ 654,\ in\ _handle_exception

\ \ \ \ return\ super\(JsonRequest,\ self\)\._handle_exception\(exception\)

\ \ File\ "/opt/odoo/custom/src/odoo/odoo/http.py", line 301, in _handle_exception

raise exception.with_traceback(None) from new_cause

AssertionError: Element odoo has extra content: record, line 3

My xml is this:

   

        carb_hrexpense_form

         

       

       

       

           

                {'required': False}

           

       

   










Avatar
Descartar

XML code snippets will be removed, pls attach the code screenshot for reference

Publicaciones relacionadas Respuestas Vistas Actividad
1
may 25
3000
1
may 24
2536
1
abr 24
2152
3
abr 23
7354
2
feb 24
3823