Hello Dear i want to add attachment field in exiting odoo view can you help me how i can do that.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello Dear i want to add attachment field in exiting odoo view can you help me how i can do that.
Thanks
Hi,
You can try like this,
attachment_id = fields.Many2one('ir.attachment', string="Attachment", required=True)
Thanks
I am not sure I correctly understand your question but attachment stored in ir.attachment model.
There is an easy way to an attachment on any model by the chatter
for that you have to inherit model from mail.thread and add related fields (message_ids) on the view
https://github.com/odoo/odoo/blob/12.0/addons/event/models/event.py#L81
https://github.com/odoo/odoo/blob/12.0/addons/event/views/event_views.xml#L273
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Nov 24
|
1607 | ||
|
2
Apr 23
|
14509 | ||
|
1
Mar 23
|
1133 | ||
|
4
Aug 24
|
21095 | ||
|
0
Dec 21
|
1463 |
Hope this will helps: https://learnopenerp.tumblr.com/