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

User button for importation

By
Y@el
on 5/6/15, 3:55 AM 258 views

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

0
Motez
On 3/17/16, 10:04 AM

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.

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: 5/6/15, 3:55 AM
Seen: 258 times
Last updated: 3/17/16, 10:04 AM