Skip to content

Commit

Permalink
[MIG] migration to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
damdam-s authored and SimoRubi committed Mar 17, 2021
1 parent b2f9f5e commit 686cf93
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
4 changes: 2 additions & 2 deletions base_report_auto_create_qweb/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

{
"name": "Report qweb auto generation",
"version": "8.0.1.0.0",
"version": "9.0.1.0.0",
"depends": [
"report",
],
Expand All @@ -43,5 +43,5 @@
"wizard/report_duplicate_view.xml",
"views/report_xml_view.xml",
],
'installable': False,
'installable': True,
}
41 changes: 20 additions & 21 deletions base_report_auto_create_qweb/views/report_xml_view.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 686cf93

Please sign in to comment.