Skip to Content
Menu
This question has been flagged
1 Reply
2861 Views

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

 


Avatar
Discard
Best Answer

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 

Avatar
Discard