Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1816 Lượt xem

Hello,

I can import a CSV with the standard import module in my custom model. No problem.

But now I would like create a button for my user to automaticly load this file. I want place all operations in a function (file location, mapping, ...).

An other way is  to use a xml record (like a module load) but I didn't find the method to attach this function to a user interface button. "Load the file now" :-)

Thank you for you idea.

Regards

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

If you want to add a button to import data from static file i think that the easiest way to do it with the csv python module. 

If you want to extend the import CSV functionality you can find the existent one in the base_import module.

Ảnh đại diện
Huỷ bỏ