Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
you can get data directory using
odoo.tools.config['data_dir'] and then query into ir.attachment model and get file name and combine it.
thank u
if i have field binary and want to upload xlsx file and store it in database
how can i do that
i make some steps i make a code to get data from xlsx file and store it in model in database but this code take a path of file so i ask this question
Dont keep attachment = true when you declare file if you want to store in database
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل