คำถามนี้ถูกตั้งค่าสถานะ
2
ตอบกลับ
6819
มุมมอง
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"/>
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
0
ธ.ค. 24
|
3921 | ||
|
How to set attachments to public?
แก้ไขแล้ว
|
|
1
มี.ค. 23
|
9309 | |
|
|
0
ต.ค. 21
|
4384 | ||
|
|
2
พ.ค. 20
|
14214 | ||
|
|
2
ธ.ค. 17
|
6335 |