asked 2013-05-30 13:38:32 +0200Zahin
I want to import excel file in openerp how to ?
I have binary field where I have save excel file. now button click I want to import data from excel to field which in my form view.
I need to parse excel and convert to dict then will do write.
but any good feature with in openerp?
answered 2013-05-30 14:10:10 +0200Alexander
You can define on_cnange method, what would process uploaded file.
<field name="excelfile" on_change="on_file_load(excelfile)"/>
You need to write parsing method in your *.py file
def on_file_load(self, cr, uid, ids, excelfile, context=None): #do_something
In this case file would be parsed before you save object.
You can read the online documentation
Asked: 2013-05-30 13:38:32 +0200
Seen: 389 times
Last updated: May 30 '13