Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Openerp 奥多继承=';mail.thread';错误_Openerp_Odoo 9 - Fatal编程技术网

Openerp 奥多继承=';mail.thread';错误

Openerp 奥多继承=';mail.thread';错误,openerp,odoo-9,Openerp,Odoo 9,我试图将讨论和通知添加到academy类,但出现错误。 我的代码: models.py class Courses(models.Model): _name = 'academy.courses' _inherit = 'mail.thread' views.xml <div class="oe_chatter"> <field name="message_follower_ids" widget="mail_followers"/> <field nam

我试图将讨论和通知添加到academy类,但出现错误。 我的代码: models.py

class Courses(models.Model):
_name = 'academy.courses'
_inherit = 'mail.thread'
views.xml

<div class="oe_chatter">
  <field name="message_follower_ids" widget="mail_followers"/>
  <field name="message_ids" widget="mail_thread"/>
</div>
我尝试了什么:

  • openerp.py

    “依赖”:[“网站”、“邮件”]

  • 然后:

    models.py

    class Courses(models.Model):
    _name = 'academy.courses'
    _inherit = 'mail.thread'
    
    课堂课程(模型。模型): _名称='academy.courses' _继承=['academy.courses','mail.thread']


  • 但是没有什么帮助:(

    谢谢你的回答。我想我找到了解决办法

    对于我来说,在网站的
    \uuu openerp\uuuuuuupy
    更改
    ->
    base
    中有帮助。我不知道为什么,但它有帮助。也许有人知道为什么


    视情况而定:['base',mail']

    我可能听起来很傻,但我还是要问,你是否尝试重新启动服务器?我也遇到了同样的错误。我想odoo在他们的教程中没有提到这一点。谢谢你的回答。:)