0
我繼承郵件線程,然後點擊新的消息後,收到此錯誤:郵件線程odoo 9
Odoo Server Error
Traceback (most recent call last):
File "/home/pc/git/odoo/openerp/http.py", line 648, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/pc/git/odoo/openerp/http.py", line 685, in dispatch
result = self._call_function(**self.params)
File "/home/pc/git/odoo/openerp/http.py", line 321, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/pc/git/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/home/pc/git/odoo/openerp/http.py", line 314, in checked_call
result = self.endpoint(*a, **kw)
File "/home/pc/git/odoo/openerp/http.py", line 964, in __call__
return self.method(*args, **kw)
File "/home/pc/git/odoo/openerp/http.py", line 514, in response_wrap
response = f(*args, **kw)
File "/home/pc/git/odoo/addons/web/controllers/main.py", line 888, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/pc/git/odoo/addons/web/controllers/main.py", line 880, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/home/pc/git/odoo/openerp/api.py", line 250, in wrapper
return old_api(self, *args, **kwargs)
File "/home/pc/git/odoo/openerp/api.py", line 381, in old_api
result = method(recs, *args, **kwargs)
File "/home/pc/git/odoo/addons/mail/models/mail_thread.py", line 1473, in message_get_suggested_recipients
if not obj.user_id or not obj.user_id.partner_id:
AttributeError: 'res.partner' object has no attribute 'partner_id'
在OpenERP的添加「依賴」:「基地」,「網絡」,「網站」 , '小時', '郵件'],
在模型中增加了:_inherit = [ 'mail.thread', 'ir.needaction_mixin']
在哪裏的問題,什麼是名OD表在哪裏消息存儲?
你會寫你完整的代碼? –
發佈完整的郵件模板代碼.....和py –
@ EmiproTechnologiesPvt.Ltd。我更新我的問題,從控制檯完整的錯誤代碼在這裏。在其他模塊中,我也使用郵件線程一切正常。按鈕記錄內部音符工作正常! –