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

Hi All,

I have a binary field in a wizard, and I am trying to get the name of file attached in button action of that wizard.

I know it is possible in website.

Any Hints.?

아바타
취소
베스트 답변

Try this,

In Model,

file = fields.Binary("Attachment")

file_name = fields.Char("File Name")

In View,

<field name="file" filename="file_name"/>

<field name="file_name" invisible="1"/>

If you try this, binary field will show the file name.

아바타
취소
작성자

Perfect, Accepting as answer.

Could you please tell me any way to get the path of the attached file.?

작성자

Yes, Got it

관련 게시물 답글 화면 활동
0
10월 23
1643
4
10월 18
8411
3
6월 18
6970
1
12월 19
3562
0
10월 19
2877