Browse Source

[MIG] migration to v9

pull/438/head
Damien Crier 9 years ago
parent
commit
9340a59d4b
  1. 4
      base_report_auto_create_qweb/__openerp__.py
  2. 41
      base_report_auto_create_qweb/views/report_xml_view.xml

4
base_report_auto_create_qweb/__openerp__.py

@ -18,7 +18,7 @@
{
"name": "Report qweb auto generation",
"version": "8.0.1.0.0",
"version": "9.0.1.0.0",
"depends": [
"report",
],
@ -43,5 +43,5 @@
"wizard/report_duplicate_view.xml",
"views/report_xml_view.xml",
],
'installable': False,
'installable': True,
}

41
base_report_auto_create_qweb/views/report_xml_view.xml

@ -1,24 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="ir_actions_report_xml_form_view">
<field name="name">ir.actions.report.xml.form</field>
<field name="model">ir.actions.report.xml</field>
<field name="priority" eval="5" />
<field name="inherit_id" ref="report.act_report_xml_view_inherit" />
<field name="arch" type="xml">
<xpath expr="//form/group" position="before">
<header>
<button name="%(ir_actions_report_xml_duplicate_action)d"
string="Duplicate Report" class="oe_highlight" type="action"/>
</header>
</xpath>
<button name="associated_view" position="after">
<button type="object" class="oe_link" name="button_create_qweb"
string="Create QWeb view" colspan="2"
attrs="{'invisible':[('report_type', 'not in', ['qweb-pdf', 'qweb-html'])]}" />
</button>
</field>
</record>
</data>
<data>
<record model="ir.ui.view" id="ir_actions_report_xml_form_view">
<field name="name">ir.actions.report.xml.form</field>
<field name="model">ir.actions.report.xml</field>
<field name="priority" eval="5" />
<field name="inherit_id" ref="report.act_report_xml_view_inherit" />
<field name="arch" type="xml">
<xpath expr="//button[@name='unlink_action']" position="after">
<button name="%(ir_actions_report_xml_duplicate_action)d"
string="Duplicate Report" class="oe_highlight" type="action"/>
</xpath>
<button name="associated_view" position="after">
<button type="object" class="oe_link" name="button_create_qweb"
string="Create QWeb view" colspan="2"
attrs="{'invisible':[('report_type', 'not in', ['qweb-pdf', 'qweb-html'])]}" />
</button>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save