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

I am using tablet and when I am uploading images by using system camera, the previous taken image is replaced by new taken image.I am using odoo12 Many2many field for ir.attachmnet relation and many2many_binary widget. Once the record is saved then I can upload multiple images with camera. Please help.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Sunil,

You can add your field like below format. Then i think it will help you.

attachment_ids = fields.Many2many('ir.attachment', 'add_relation', 'column1', 'attachment_id(column2)',
string='Files')
<field name="attachment_ids" string="Attachments" widget="many2many_binary"/>

Thanks


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
7
thg 8 20
7041
0
thg 8 19
2600
0
thg 7 19
4910
0
thg 12 23
1322
1
thg 2 23
1861