1
votes

How can we add an attachment to upload file and to be like a simple field inside the odoo form

PS : i don't want the attachment to be on the Top of the from i want it just like the way we add fields in odoo.

Thanks,

2

2 Answers

0
votes

Try fields.Binary

Ex:

data_file = fields.Binary(string='File')

Hope it will help you.

0
votes

you can try this:

 attachment_ids = fields.Many2many('ir.attachment', 'attachment_id',string='Attachments')