Browse Source

mis_builder: minimal change / excel export doesn't work

pull/86/head
Laetitia Gangloff 10 years ago
committed by Stéphane Bidoul
parent
commit
4102f5a1fb
  1. 6
      mis_builder/__openerp__.py
  2. 11
      mis_builder/views/mis_builder.xml

6
mis_builder/__openerp__.py

@ -46,15 +46,9 @@
'tests/mis.report.instance.period.csv',
'tests/mis.report.instance.csv',
],
'js': [
'static/src/js/*.js'
],
'qweb': [
'static/src/xml/*.xml'
],
'css': [
'static/src/css/*.css'
],
'installable': True,
'application': True,
'auto_install': False,

11
mis_builder/views/mis_builder.xml

@ -2,6 +2,13 @@
<openerp>
<data>
<template id="assets_backend" name="mis_builder" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/mis_builder/static/src/css/custom.css"/>
<script type="text/javascript" src="/mis_builder/static/src/js/mis_builder.js"></script>
</xpath>
</template>
<record model="ir.ui.view" id="mis_report_view_tree">
<field name="name">mis.report.view.tree</field>
<field name="model">mis.report</field>
@ -69,7 +76,7 @@
<field name="model">mis.report.instance</field>
<field name="type">ir.actions.report.xml</field>
<field name="report_name">mis.report.instance.xls</field>
<field name="report_type">xls</field>
<!--field name="report_type">xls</field-->
<field name="auto" eval="False"/>
</record>
@ -80,7 +87,7 @@
<field name="arch" type="xml">
<form string="MIS Report Result" version="7.0">
<widget type="mis_report"></widget>
<button icon="gtk-execute" name="%(xls_export)d" string="Export" type="action" colspan="2"/>
<!--button icon="gtk-execute" name="%(xls_export)d" string="Export" type="action" colspan="2"/-->
</form>
</field>
</record>

Loading…
Cancel
Save