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
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
Add New Operation Type in Warehouse
Resolvido
|
2
dez. 24
|
5223 | ||
|
Unable to use TensorFlow in Odoo module
Resolvido
|
1
nov. 25
|
4087 | ||
|
2
abr. 23
|
19844 | |||
|
1
mar. 23
|
3296 | |||
|
4
ago. 24
|
25498 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Hope this will helps: https://learnopenerp.tumblr.com/