This question has been flagged
2
Replies
6422
Views
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"/>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
0
Dec 24
|
3680 | ||
|
|
1
Mar 23
|
9046 | ||
|
|
0
Oct 21
|
4200 | ||
|
|
2
May 20
|
13977 | ||
|
|
2
Dec 17
|
6165 |