Se marcó esta pregunta
2
Respuestas
6564
Vistas
I did it in write method
You can achieve it by doing the following:
attachment_id = fields.Many2one('ir.attachment', string='Attachment')
attachment_fname = fields.Char('Attachment Filename', related='attachment_id.name')
<field name="attachment_fname" invisible="1"/>
<field name="attachment_id" filename="attachment_fname"/>
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
0
dic 24
|
3820 | ||
|
How to set attachments to public?
Resuelto
|
|
1
mar 23
|
9161 | |
|
|
0
oct 21
|
4293 | ||
|
|
2
may 20
|
14081 | ||
|
|
2
dic 17
|
6240 |