Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5932 Lượt xem

Hi there,

Can someone help to add internal notes to a contact using the API? (at the bottom of the mage, also known as message)


What models should I use for this? To make them show under in the contact section I have to use res.partner model but I can't figure out which field I have to update or method to use in order to add notes


Regards


Ảnh đại diện
Huỷ bỏ
Tác giả

hi @Ray_Carnes, thanks for that, but I'm having a hard time findignthe sections where an attachment is used inside a messagehow can I acomplish this using the external API? can you give me an example? I found this https://stackoverflow.com/questions/57653365/how-to-create-new-attachments-in-odoo-how-do-they-work but seems confusing

Tác giả Câu trả lời hay nhất

Hi I figure that I had to do the following

models.execute_kw(db, uid, pwd, 'mail.message', 'create', [{ 'model': 'res.partner', 'res_id': id, 'body': "This note was made using the API 2", 'author_id': uid, 'create_date': datetimestring, 'date': datetimestring, 'write_date': datetimestring 'attachment_ids':[]}])

Does anyone know how to add attachments to the messages?


I was also able to attacht files, thank all! this Q is solved

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 23
1865
0
thg 9 21
2189
0
thg 7 21
5005
1
thg 3 21
4642
3
thg 1 25
3763