Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
9656 มุมมอง

I am getting this error when i click on send email button how to fix the issue

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

_inherit = ['mail.thread', 'ir.needaction_mixin'] you must add this line to your *.py class.. and thats all .

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

The object ceg.visitor doesn't sound like a regular object.

The message is about an object missing an attribute or method. So there is an object of type ceg.visitor, and in the code it wants to use message_post (either to perform something, like posting a message to or from that object, or it wants to check/fill the variable message_post).

Have you installed any code from internet or made by yourself/your company? In these cases, check the code, and make sure there is no error in the code (wrong object name, or mistyped method) and make sure that the object ceg.visitor has either a method message_post, or a variable (that is field) with that name.

อวตาร
ละทิ้ง
ผู้เขียน

I am trying to send a email from template, when i click on send it is working fine with standard module such as sales, here ceg.visitor is my customised object this is my code for wizard in self.browse(cr, uid, ids, context=context): mass_mail_mode = wizard.composition_mode == 'mass_mail' active_model_pool_name = wizard.model if wizard.model else 'mail.thread' active_model_pool = self.pool.get(active_model_pool_name) and i am getting error in this line msg_id = active_model_pool.message_post(cr, uid, [res_id], type='comment', subtype=subtype)

Can you post your customized code in your question? We need the relevant code for ceg.visitor, and the wizard.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 25
318
2
ก.ค. 23
5981
1
ส.ค. 23
2411
Add an attachment to message_post แก้ไขแล้ว
1
มิ.ย. 22
11204
new api for message_post?? แก้ไขแล้ว
1
ธ.ค. 23
17811