Good morning community Odoo. i have a problem in odoo v13. the error is as follows:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 712, in parse
self._tag_root(de)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 674, in _tag_root
f(rec)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 577, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 4083, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 3997, in _load_records_create
return self.create(values)
File "<decorator-gen-37>", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 336, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_actions.py", line 235, in create
return super(IrActionsActWindow, self).create(vals_list)
File "<decorator-gen-35>", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 336, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_actions.py", line 59, in create
res = super(IrActions, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 336, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 3702, in create
raise ValueError("Invalid field %r on model %r" % (key, self._name))
ValueError: Invalid field 'view_type' on model 'ir.actions.act_window'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\pycompat.py", line 14, in reraise
raise value
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 915, in __call__
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\http.py", line 515, in response_wrap
response = f(*args, **kw)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\web\controllers\main.py", line 1326, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\web\controllers\main.py", line 1314, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-60>", line 2, in button_immediate_install
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_module.py", line 72, in check_and_log
return method(self, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_module.py", line 463, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_module.py", line 573, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 423, in load_modules
loaded_modules, update_module, models_to_check)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 315, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 225, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\modules\loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 736, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 803, in convert_xml_import
obj.parse(doc.getroot())
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 721, in parse
exc_info[2]
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 712, in parse
self._tag_root(de)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 674, in _tag_root
f(rec)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\tools\convert.py", line 577, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 4083, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 3997, in _load_records_create
return self.create(values)
File "<decorator-gen-37>", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 336, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_actions.py", line 235, in create
return super(IrActionsActWindow, self).create(vals_list)
File "<decorator-gen-35>", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 336, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\addons\base\models\ir_actions.py", line 59, in create
res = super(IrActions, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\api.py", line 336, in _model_create_multi
return create(self, arg)
File "C:\Program Files (x86)\Odoo 13.0\server\odoo\models.py", line 3702, in create
raise ValueError("Invalid field %r on model %r" % (key, self._name))
odoo.tools.convert.ParseError: "Invalid field 'view_type' on model 'ir.actions.act_window'" while parsing file:/c:/users/dell/pycharmprojects/demo/extra_addons/odoo-routes-master/views/routes.xml:2, near
<odoo>
<!-- override original list view -->
<record model="ir.ui.view" id="route_tree_view">
<field name="name">route.tree</field>
<field name="model">routes.route</field>
<field name="arch" type="xml">
<tree string="Route Tree">
<field name="date"/>
<field name="client_ids"/>
<field name="distance"/>
<field name="duration"/>
</tree>
</field>
</record>
<!-- route creation form — select clients only -->
<record model="ir.ui.view" id="route_form_view">
<field name="name">route.form</field>
<field name="model">routes.route</field>
<field name="arch" type="xml">
<form string="Route Form">
<sheet>
<group>
<field name="client_ids"/>
<field name="route_url"/>
</group>
</sheet>
</form>
</field>
</record>
<!-- search bar -->
<record model="ir.ui.view" id="route_search_view">
<field name="name">route.search</field>
<field name="model">routes.route</field>
<field name="arch" type="xml">
<search>
<field name="client_ids"/>
<field name="distance"/>
<field name="duration"/>
<field name="date"/>
</search>
</field>
</record>
<!-- window action -->
<!--
The following tag is an action definition for a "window action",
that is an action opening a view or a set of views
-->
<record model="ir.actions.act_window" id="route_list_action">
<field name="name">Rutas</field>
<field name="res_model">routes.route</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">Crear una ruta
</p>
</field>
</record>
<!-- top level menu: no parent -->
<menuitem id="main_routes_menu" name="Routes"/>
<!-- A first level in the left side menu is needed
before using action= attribute -->
<menuitem id="routes_menu" name="Rutas" parent="main_routes_menu"/>
<!-- the following menuitem should appear *after*
its parent routes_menu and *after* its
action course_list_action -->
<menuitem id="route_menu" name="Ver rutas" parent="routes_menu" action="route_list_action"/>
<!-- Full id location:
action="routes.route_list_action"
It is not required when it is the same module -->
</odoo>
Please use a meaningful title referring to your error message.