I am working on odoo 10, I need to attach a documents by clicking a button in tree view on Vendor Bills menu. I have created a button in the tree view for all the rows, when clicking a button i have to popup a form which contains upload button.
When click this upload button a popup shows to select a file to upload. This works perfectly for me.
After upload i have to save the attached document for whenever the user wants to open the document, the uploaded file will be always shows in the popup form.
In this i uploaded the document after i open the form it doesn't shows the uploaded form.Can anyone help me to solve this issue
attachment_ids = fields.Many2many(
help='Attachments are linked to a document through model / res_id and to the message '
'through this field.')