Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
2
回复
3881
查看
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"/>
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
0
12月 24
|
1276 | ||
|
1
3月 23
|
6448 | ||
|
0
10月 21
|
2515 | ||
|
2
5月 20
|
12058 | ||
|
2
12月 17
|
4159 |