Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Create button to import csv file and show the content in a table

By
superpan86
on 7/22/15, 11:17 AM 660 views

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?

1

Drees Far

--Drees Far--
1130
| 5 2 6
Tunis, Tunisia
--Drees Far--
Drees Far
On 7/22/15, 12:52 PM

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

Please, vote

Drees Far
on 7/23/15, 7:42 AM
0
superpan86
On 7/23/15, 5:16 AM

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

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
on 7/23/15, 5:45 AM
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

superpan86
on 7/23/15, 5:52 AM

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

Drees Far
on 7/23/15, 6:42 AM

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

superpan86
on 7/23/15, 7:05 AM

But, i want to get karma :/

Drees Far
on 7/23/15, 7:33 AM

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

Drees Far
on 7/23/15, 7:41 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/22/15, 11:17 AM
Seen: 660 times
Last updated: 7/23/15, 7:24 AM