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

Hello everybody, this is my problem, I'm using a plugin for thunderbird and You can insert the emails of thunderbird to Odoo. But when I create a new record in mail.message automatically send me the same email that I had inside thunderbird, I'm using this:

                    self.pool.get('mail.message').create(cr, uid, {

                        'subject': msg.get('subject'), 

                        'email_from': email_from, 

                        'record_name': msg.get('subject'), 

                        'message_type': 'email', 

                        'body': msg.get('body'), 

                        'author_id': author_id, 

                        'reply_to': email_from, 

                        'message_id': message_id,

                        'partner_ids': [(6, 0, destinatarios_ids)],

                    })

There is some way to keep the content of partner_ids but without sending the email again? Thanks!!

Another question, how can I change that users only can see their own messages in mail.message? Thanks!

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

Why are you using 'email' as message type if you don't wont to send an email? Did you try to use 'comment' instead?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 24
1803
3
ม.ค. 20
5583
2
ก.พ. 18
7169
1
ก.ย. 16
3651
1
มี.ค. 15
9608