当我在 Odoo 10 上传我的包时出现以下问题:
File "/home/nisus/odoo10/odoo-dev/odoo/odoo/addons/base/ir/ir_actions.py", line 248, in _check_model
raise ValidationError(_('Invalid model name %r in action definition.') % action.res_model)
ParseError: "Invalid model name u'myconferences.myconf' in action definition.
None" while parsing /home/nisus/odoo10/odoo-dev/odoo/addons/kugan_one/views/views.xml:5, near
<act_window id="action_myconference" name="Manage Conferences" res_model="myconferences.myconf"/>
答案1
当您在 Odoo 10 中上传包时:
res_model="myconferences.myconf"
:此类对象未创建,或者您无法添加自定义插件路径,例如:
./odoo-bin --addons-path=addons,custom_addons -d custom_db
您必须检查此类是否在您的模块中:
class MyconferencesMyconf(models.TransientModel): _name = 'myconferences.myconf'