我想在Odoo中添加一个模块,但是有一个问题,我无法导入模型
您能给我一些建议吗?
Odoo服务器错误
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 641, in _handle_exception
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 683, in dispatch
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 333, in _call_function
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\service\model.py", line 101, in wrapper
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 326, in checked_call
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 941, in __call__
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\http.py", line 506, in response_wrap
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\web\controllers\main.py", line 896, in call_button
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\web\controllers\main.py", line 884, in _call_kw
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\api.py", line 689, in call_kw
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\api.py", line 680, in call_kw_multi
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\module\module.py", line 411, in button_immediate_install
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\module\module.py", line 485, in _button_immediate_function
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\modules\registry.py", line 83, in new
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\modules\loading.py", line 339, in load_modules
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\modules\loading.py", line 237, in load_marked_modules
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\modules\loading.py", line 156, in load_module_graph
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\modules\loading.py", line 95, in _load_data
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\tools\convert.py", line 845, in convert_file
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\tools\convert.py", line 915, in convert_xml_import
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\tools\convert.py", line 796, in parse
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\tools\convert.py", line 799, in parse
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\tools\convert.py", line 707, in _tag_record
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\ir\ir_model.py", line 1236, in _update
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\ir\ir_ui_view.py", line 362, in create
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 3855, in create
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\fields.py", line 1046, in determine_inverse
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\ir\ir_ui_view.py", line 220, in _inverse_arch
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\addons\base\ir\ir_ui_view.py", line 380, in write
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 3568, in write
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 3732, in _write
File "C:\Program Files (x86)\Odoo 10.0\server\odoo\models.py", line 1081, in _validate_fields
ParseError: "Error mentre es validaven les restriccions
Model no trobat: openacademy.professo
Error de contexte:
Mireu `openacademy.professor.form`
[view_id: 808, xml_id: n/d , model: openacademy.professor, parent_id: n/d ]
None" while parsing file:///c:/program%20files%20(x86)/odoo%2010.0/server/odoo/addons/openacademy/views/openacademy.xml:4, near
<record model="ir.ui.view" id="professor_form_view">
<field name="name">openacademy.professor.form</field>
<field name="model">openacademy.professor</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Formulari de professor">
<sheet>
<group>
<field name="professor_nom"/>
<field name="professor_cognoms"/>
<field name="phone"/>
<field name="email"/>
</group>
</sheet>
</form>
</field>
</record>