Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5947 Представления

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
1539
1
мар. 23
6752
2
апр. 22
4205
0
окт. 21
2704
2
мая 20
12284