Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
26066 Vues

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.?

Avatar
Ignorer
Meilleure réponse

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.

Avatar
Ignorer
Auteur

Perfect, Accepting as answer.

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

Auteur

Yes, Got it

Publications associées Réponses Vues Activité
0
oct. 23
1503
4
oct. 18
8254
3
juin 18
6825
1
déc. 19
3434
0
oct. 19
2738