Odoo Help


Show attachments in listview/table on the form

Mario Gielissen | Openworx
on 7/4/16, 8:03 AM 832 views

In a form, all attachments are under the Attachment button. Is it possible to show the attachments in a listview / table in the form?

Axel Mendoza
On 7/4/16, 8:23 AM

Hi Mario Gielissen

You could do it with a computed m2m field that retrieve the attachments using this domain:

 self.env['ir.attachment'].search([('res_model', '=', self._name), ('res_id', '=', self.id), ('type', 'in', ('binary', 'url'))])

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/4/16, 8:03 AM
Seen: 832 times
Last updated: 7/4/16, 8:23 AM