Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
5960 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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'))])
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
груд. 24
1541
1
бер. 23
6755
2
квіт. 22
4208
0
жовт. 21
2709
2
трав. 20
12287