I have a file in one of my project folder and i want that a user can download it on click.. so what should i have to do?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
5904
Widoki
Hello, if you need to download a file that is stored in a field of your model, what you should do is to declare the field indicate that is binary.
file. py
'image': fields.binary ('image')
file .xml
<field name="imagen" filename="miarchivo.png"/>
Look at this forum the following http://help.openerp.com/question/19003/how-to-add-a-link-to-download-an-external-file/
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się