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

I have in the columns:

    'upload_file': fields.binary('Upload csv File')

http://tinypic.com/r/90y89w/8

Can i replace the "save as" button with "validate" or "import" button(and of course change the functionality )???

Or, is better to create something like the "import a csv file" from openerp?

Any help?

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

Yes, you can create a button like import csv file and treat this like a qweb module.

So, i think you have to create a new widget that makes you upload the file, read it and then display all its content.

I have tried an example like this

This can help you as a begining:

http://www.tutorialspoint.com/python/python_cgi_programming.htm

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

Please, vote

Tác giả Câu trả lời hay nhất

Thank you for your answer, it is really helpful.Did you upload somewhere this example you've created?  

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

No i didnt!!!! Because i didnt finidh it yet. If you want i can give you my code if you are interesting in ;)

It would be great,thank you!!!!:D

On 23 July 2015 at 10:45, Drees Far <far.drees@gmail.com> wrote:

No i didnt!!!! Because i didnt finidh it yet. If you want i can give you my code if you are interesting in ;)

--
Drees Far
Sent by Odoo S.A. using Odoo access your messages

ok can you reload the question to be able to answer you because only one answer is alloowed per question

Tác giả

I can't do many things,since I have only 8 karma.You can post it as a comment if you want.

But, i want to get karma :/

I have asked a new question in your position ;) https://www.odoo.com/fr_FR/forum/help-1/question/how-to-import-csv-file-on-odoo-88573

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 17
8489
3
thg 6 20
3955
1
thg 11 18
9439
11
thg 2 17
63726
1
thg 8 15
3191