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

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
One2Many Attachment Field Download Error แก้ไขแล้ว
3
มี.ค. 15
12540
1
ม.ค. 25
1711
5
พ.ค. 23
15328
2
ธ.ค. 23
5313
2
ก.ย. 22
9434