Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
2
Odpovědi
3946
Zobrazení
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!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
0
pro 24
|
1322 | ||
How to set attachments to public?
Vyřešeno
|
|
1
bře 23
|
6504 | |
|
0
říj 21
|
2546 | ||
|
2
kvě 20
|
12108 | ||
|
2
pro 17
|
4189 |