تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3582 أدوات العرض

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.

الصورة الرمزية
إهمال
أفضل إجابة

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


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
7
أغسطس 20
7017
0
أغسطس 19
2581
0
يوليو 19
4877
0
ديسمبر 23
1271
1
فبراير 23
1833