Damien Crier
9 years ago
8 changed files with 69 additions and 64 deletions
-
29base_report_auto_create_qweb/README.rst
-
8base_report_auto_create_qweb/__init__.py
-
21base_report_auto_create_qweb/__openerp__.py
-
8base_report_auto_create_qweb/models/__init__.py
-
10base_report_auto_create_qweb/models/report_xml.py
-
38base_report_auto_create_qweb/views/report_xml_view.xml
-
8base_report_auto_create_qweb/wizard/__init__.py
-
11base_report_auto_create_qweb/wizard/report_duplicate.py
@ -1,7 +1,7 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
############################################################################## |
|||
# For copyright and license notices, see __openerp__.py file in root directory |
|||
############################################################################## |
|||
# -*- coding: utf-8 -*- |
|||
# Authors: See README.RST |
|||
# Copyright 2016 See README.rst for Authors |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import models |
|||
from . import wizard |
@ -1,6 +1,6 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
############################################################################## |
|||
# For copyright and license notices, see __openerp__.py file in root directory |
|||
############################################################################## |
|||
# -*- coding: utf-8 -*- |
|||
# Authors: See README.RST |
|||
# Copyright 2016 See README.rst for Authors |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import report_xml |
@ -1,23 +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="//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> |
|||
<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> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</openerp> |
@ -1,6 +1,6 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
############################################################################## |
|||
# For copyright and license notices, see __openerp__.py file in root directory |
|||
############################################################################## |
|||
# -*- coding: utf-8 -*- |
|||
# Authors: See README.RST |
|||
# Copyright 2016 See README.rst for Authors |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import report_duplicate |
Write
Preview
Loading…
Cancel
Save
Reference in new issue