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

Button to export data

By
Tarun Behal
on 7/5/13, 6:12 PM 633 views

Hi All,

Greetings of the Day..!!!

I am working on one requirement where I need to create a button, on clicking of which the data is exported. Instead of using Aerro, I used OpenERP in-built export functionality to achieve the same. The code is running as expected but seemingly its not generating any CSV

def print_order(self, cr, uid, ids, context=None):
    if context == None:
        context = {} 
    fields = [u'id', u'name']
    return super(sale_order, self).export_data(cr, uid, ids=ids, fields_to_export=fields, context=context)

Please provide your input as to what I am missing. Prompt response would be highly appreciated.

Regards, Tarun Behal

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/5/13, 6:12 PM
Seen: 633 times
Last updated: 3/16/15, 8:10 AM