使用python将openerp数据导出到csv文件的最佳方法 [英] The best way to export openerp data to csv file using python

查看:83
本文介绍了使用python将openerp数据导出到csv文件的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪种方法是使用python将openerp数据导出到csv/xls文件的最佳方式,以便我可以在openerp中计划它(我不能使用客户端导出)?

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)?

  • 使用csv python包
  • 使用xlwt python包
  • 还是其他任何包裹?

还有如何动态提供路径和名称来保存此新创建的csv文件

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

推荐答案

它们的某些特定方式

  • 使用csv python包
    • 在这种情况下,您可以利用 export_data 服务将自动为您生成csv,您可以将其与Scheduler(cron job)一起使用,甚至可以为其编写脚本.
    • 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.
      • 这对于您读取所有数据然后进行处理然后生成csv来说将是头疼的事情,而首先选择该选项就已经完成了您90%的工作.

      这篇关于使用python将openerp数据导出到csv文件的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆