تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
6369 أدوات العرض

I want to write a module in which you can upload an excel file, after uploading some of the sale order records should be updated based on excel file content. How can I achieve this using odoo import excel option?

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

I achieved this by extending ListView.buttons template and writing its specific js file and python import function.

الصورة الرمزية
إهمال
أفضل إجابة

Create a custom model tailored to the excel file you want to upload, so you can upload it just using the standard odoo import function. Then you can write a method to be called from a menu action or a button that will process the imported lines and flag them as done or delete them.

Otherwise you have to make a model where you can upload the excel file as a binary attachment, and then elaborate it manually using a python excel library.

الصورة الرمزية
إهمال
الكاتب

can you be more specific about using standard odoo import?

can you be more specific about using standard odoo import?

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
نوفمبر 23
7370
3
نوفمبر 20
4921
1
يوليو 25
1088
3
يوليو 16
5201
4
نوفمبر 24
10922