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

Hi 

I added a Many2many field in models.py:

attachment = fields.Many2many('ir.attachment',string="attachments")

And in views.xml:

<field name="attachment" widget = "many2many_binary" />


The problem is that I have no possibility to delete attached files!!

Normally I should have a "x" sign in the corner of the file to have the possibility to delete it.

I use Safari browser.

Any help will be appreciated.


Thanks

 


Аватар
Отменить
Лучший ответ

you can try this 

in models.py

<<field name>> = fields.Many2many("<<model name>>", "<<relation table name>>", "<<id1>>", "<<id2>>", string='<<string>>')


I hope this will help you 

thank you 

Аватар
Отменить