Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6069 มุมมอง

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?

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
พ.ย. 23
7065
3
พ.ย. 20
4709
0
ก.ย. 24
754
3
ก.ค. 16
5004
4
พ.ย. 24
10455