odoo:ir.ui.menu.action 的错误值
odoo: Wrong value for ir.ui.menu.action
我是 odoo 的新手,现在我正在学习构建模块并且我正在使用 odoo 13,当我尝试安装学校模块时它给了我以下错误:
File "/home/user/odoo/odoo13/odoo/fields.py", line 2338, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
odoo.tools.convert.ParseError: "Wrong value for ir.ui.menu.action: 'form,189'" while parsing /home/user/odoo/odoo13/custom_addons/school/views/student_view.xml:2, near
<odoo>
<data>
<record id="student_menu_action" model="ir.actions.act_window">
<field name="name">Students</field>
<field name="res_model">student.student</field>
<field name="type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[]</field>
<field name="help" type="html
<p class="oe_view_nocontent_create">Create The First Student
</p>
</field>
</record>
<menuitem id="school_menu" name="School"/>
<menuitem id="school_student_menu" parent="school_menu" name="Student" action="student_menu_action"/>
</data>
</odoo>
如有任何帮助,我将不胜感激,如有必要,请随时在评论部分询问更多信息。
您忘记关闭 type
属性附近的双引号和标签:
<field name="help" type="html
<p class="oe_view_nocontent_create">Create The First Student</p>
</field>
应该是type="html">
我是 odoo 的新手,现在我正在学习构建模块并且我正在使用 odoo 13,当我尝试安装学校模块时它给了我以下错误:
File "/home/user/odoo/odoo13/odoo/fields.py", line 2338, in convert_to_cache raise ValueError("Wrong value for %s: %r" % (self, value)) odoo.tools.convert.ParseError: "Wrong value for ir.ui.menu.action: 'form,189'" while parsing /home/user/odoo/odoo13/custom_addons/school/views/student_view.xml:2, near
<odoo>
<data>
<record id="student_menu_action" model="ir.actions.act_window">
<field name="name">Students</field>
<field name="res_model">student.student</field>
<field name="type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[]</field>
<field name="help" type="html
<p class="oe_view_nocontent_create">Create The First Student
</p>
</field>
</record>
<menuitem id="school_menu" name="School"/>
<menuitem id="school_student_menu" parent="school_menu" name="Student" action="student_menu_action"/>
</data>
</odoo>
如有任何帮助,我将不胜感激,如有必要,请随时在评论部分询问更多信息。
您忘记关闭 type
属性附近的双引号和标签:
<field name="help" type="html
<p class="oe_view_nocontent_create">Create The First Student</p>
</field>
应该是type="html">