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

Cheers!


I've created a One2many field to connect a product to its attachments and show them inside the product form.


image_ids = fields.One2many('ir.attachment', 'product_tmpl_id', string='Files')


However, the form field does not get refreshed when the attachments are saved. I can see attachments in the drop down list but, unless I reload the whole page, I won't be able to see them in the form.


I've tried a few combinations, namely the way the one2many is created but nothing worked so, I guess I'm stuck with JavaScript which, unfortunately, I do not... ehem... understand that much.


Does anyone know how could the Javascript (if possible at all), affect the One2many field so that attaching a file would also refresh the form?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
مارس 15
12508
1
يناير 25
1653
5
مايو 23
15293
2
ديسمبر 23
5267
2
سبتمبر 22
9403