[分享]树形列表导出模块(Form View可用,支持8.0RC版本)
- 
OE自带的导出功能实在鸡肋,于是在一个国外的模块基础上找前端同事改良了一下形成了现在的这个可以在form和list页面中导出tree view到Excel的模块. 
 用法说明:
 1.在form view中
 [img http://images.cnitblog.com/i/396990/201407/231807217294823.png /img]
 如果from中包含一个tree view 直接点击Excel ALL Data即可导出全部数据,如果类似盘点表那样的多个Tab页,则导出当前Tab中的tree
 2.在List View中
 [img [检测到链接无效,已移除] /img]
 若全选,Excel和Excel ALL Data功能一样
 若没有全选, Excel只导出选中的部分数据,Excel All Data 导出所有数据.
 模块地址: https://github.com/kevin8909/web_export_view
- 
[quote][font=verdana][size=13px]模块地址:[/size][/font][color=rgb(51, 68, 102)][font=verdana][size=13px] https://github.com/kevin8909/web_export_view [/size][/font][/color][/quote] 
 very well done. who is sontek, though. It shows the wrong commiter.
- 
[quote author=digitalsatori link=topic=16517.msg28550#msg28550 date=1406139021] 
 [quote][font=verdana][size=13px]模块地址:[/size][/font][color=rgb(51, 68, 102)][font=verdana][size=13px] https://github.com/kevin8909/web_export_view [/size][/font][/color][/quote]
 very well done. who is sontek, though. It shows the wrong commiter.
 [/quote]
 I don't know him either,every time I commit my changes,his name shows up....orz....
- 
[quote author=matrowang link=topic=16517.msg28562#msg28562 date=1406188405] 
 顶,8能用吗?
 [/quote]
  告诉你个不幸的消息, 8是不能用的......... 告诉你个不幸的消息, 8是不能用的.........
                                                
 但是.............................
 可以通过修改代码让8可用.
 1. RC1版当中 __openerp__文件中取消了对js和css文件的引用,取而代之是views下的xml(QWeb)文件.
 2. 对js和css文件的引用转移到了views下的该文件中.
 如图:
 [img [检测到链接无效,已移除] /img]
 另外,8.0 比较坑的一点是在7.0中web模块下http.py跑到了openerp文件夹下,而且貌似在文件直接引用模块不行,都得加上openerp的前缀,不知道是不是我addons目录的问题,有待研究....
 补充另外比较坑的一点, js文件必须放在static/src/js文件夹下,我就是因为目录中少了src这个文件夹耗费了大量的调试时间.........
 模块8.0版地址: https://github.com/kevin8909/web_export_views




