Hi, I want to know how can I choose many file in my PC to my application, like the field binary but I don't want one file, I would like to add many file. Thank you for answer...
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
You can see it on message module:
<field name="attachment_ids" widget="many2many_binary"/>
You can find it here: /mail/wizard/mail_compose_message_view.xml
It handles that with qweb, but it's a little bit complex.
Anyways you can look this as an example to do this.
Ok thanks Grover, it's run
Did you made it run? Awesome, i'll try later
I put this inmy class.py 'attachment_ids': fields.many2many('ir.attachment',
'class_ir_attachments_rel',
'class_id', 'attachment_id', 'Attachments'),
and this in my class_view.xml <field name="attachment_ids" widget="many2many_binary"/>
Thank you @ Malle.
+1
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
7월 18
|
4606 | ||
|
6
12월 23
|
17955 | ||
|
1
6월 23
|
3356 | ||
|
5
1월 23
|
16599 | ||
|
2
2월 20
|
14908 |
I think we can't save multiple file in single field. So use 2 classes with one2many relation. In child class we add binary field for multiple file should be chosen.