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,
Try fields.Binary
fields.Binary
Ex:
data_file = fields.Binary(string='File')
Hope it will help you.
you can try this:
attachment_ids = fields.Many2many('ir.attachment', 'attachment_id',string='Attachments')