콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
12524 화면

.py Code : 

'attachment_ids': fields.many2many('ir.attachment', 'project_issue_ir_attachments_rel', 'issue_id', 'attachment_id', 'Attachments'),


.xml Code : 

<field name="attachment_ids" widget="many2many_binary" string="File"/>

아바타
취소
베스트 답변

Hi Manish Kumar Bohra,

you can use the widget, widget="many2many_kanban" for that.
but you have some extra steps in the attachment adding stage.

1. Add the attachment.



2. Create or Select one item from the wizard(ir.attachment model)


3. If you are creating, you have to give name, file in the wizard.



4. Then you will get this type of form view.




Note: In my knowledge, you can't delete an attachment you are uploaded. but you can change the name and file.

Hope this will help you.

Thank you.

아바타
취소
작성자

but can you suggest any solution to delete these uploaded files ??

베스트 답변

in which version this code working?

아바타
취소
작성자 베스트 답변

Thank  you Avinash it's working .

아바타
취소
베스트 답변

hey , I use it for odoo v11 but it does not work :(((  
Do you have a solution?

아바타
취소
작성자

which kind of problem you are facing ?

관련 게시물 답글 화면 활동
0
11월 17
3977
0
8월 16
4347
0
4월 16
128
0
12월 15
6829
5
11월 15
5707