I want to generate an excel file with only field name and to download the same excel file on button click.The button should be inside the form view.I am using version 10
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
4020
أدوات العرض
Hello,
You can do like this.
Take one Binary field in model for storing XLS file like
file = fields.Binary('Label', filters='.xls', readonly=True)
and then do code when you have prepared file:
temp_file = base64.encodestring(prepared_file)
self.write({'file': temp_file})
# make sure convert prepared file based on content type
Accept and upvote answer if helpful
Thanks and Regards
Haresh Kansara
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
نوفمبر 16
|
5315 | ||
|
7
يونيو 20
|
20063 | ||
|
2
مايو 16
|
4863 | ||
|
0
سبتمبر 15
|
5134 | ||
|
0
مارس 15
|
4640 |
@Haresh kansara yes i have created the excel file now i want to download it on the same click