The best way to export openerp data to csv file using python [closed]

梦想的初衷 提交于 2019-12-06 15:39:40

问题


Which is the best to way to export openerp data to csv/xls file using python so that i can schedule it in openerp( i cant use the client side exporting)?

  • using csv python package
  • using xlwt python package
  • or any other package?

And also how can I dynamically provide the path and name to save this newly created csv file


回答1:


Well their are certain ways like

  • using csv python package
    • In this case you can take advantage of the export_data service which will automatically produce csv for you, you can use with Scheduler(cron job ) or even you can write script for it.
  • using xlwt python package
    • This will be over head for you read all data then process then produce csv while first opption already yours 90% of your job.



回答2:


Why not to use Open ERP client it self.

you can go for xlwt if you really require to write a python program to generate it.



来源:https://stackoverflow.com/questions/11187086/the-best-way-to-export-openerp-data-to-csv-file-using-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!