forked from OCA/reporting-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take into accounts most remarks of @lasley
Remove <data> in views Protect import of py3o libs Remove dep on base module Other small changes
- Loading branch information
1 parent
83f88aa
commit 2fbbdc9
Showing
8 changed files
with
132 additions
and
124 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data> | ||
|
||
<!-- Inherit from base.act_report_xml_view to add py3o-related settings. --> | ||
<!-- Inherit from base.act_report_xml_view to add py3o-related settings. --> | ||
|
||
<record id="py3o_report_view" model="ir.ui.view"> | ||
<field name="name">py3o_report_view</field> | ||
<field name="model">ir.actions.report.xml</field> | ||
<field name="inherit_id" ref="base.act_report_xml_view" /> | ||
<field name="arch" type="xml"> | ||
<record id="py3o_report_view" model="ir.ui.view"> | ||
<field name="name">py3o_report_view</field> | ||
<field name="model">ir.actions.report.xml</field> | ||
<field name="inherit_id" ref="base.act_report_xml_view" /> | ||
<field name="arch" type="xml"> | ||
|
||
<xpath expr="//page[@name='security']" position="before"> | ||
<page string="LibreOffice Template" | ||
attrs="{'invisible': [('report_type', '!=', 'py3o')]}"> | ||
<xpath expr="//page[@name='security']" position="before"> | ||
<page string="LibreOffice Template" name="py3o_tab" | ||
attrs="{'invisible': [('report_type', '!=', 'py3o')]}"> | ||
|
||
<group> | ||
<field name="py3o_filetype" /> | ||
<field name="py3o_is_local_fusion"/> | ||
<field name="py3o_server_id" /> | ||
<field name="py3o_template_id" /> | ||
<field name="module" /> | ||
<field name="py3o_template_fallback" /> | ||
</group> | ||
<group name="py3o_params"> | ||
<field name="py3o_filetype" /> | ||
<field name="py3o_is_local_fusion"/> | ||
<field name="py3o_server_id" /> | ||
<field name="py3o_template_id" /> | ||
<field name="module" /> | ||
<field name="py3o_template_fallback" /> | ||
</group> | ||
|
||
</page> | ||
</xpath> | ||
</page> | ||
</xpath> | ||
|
||
</field> | ||
</record> | ||
|
||
</field> | ||
</record> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data> | ||
<menuitem id="py3o_config_menu" | ||
name="Py3o" | ||
parent="report.reporting_menuitem" /> | ||
</data> | ||
|
||
<menuitem id="py3o_config_menu" | ||
name="Py3o" | ||
parent="report.reporting_menuitem" /> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data> | ||
<record id="py3o_server_configuration_form_view" model="ir.ui.view"> | ||
<field name="name">py3o.server.configuration.form.view</field> | ||
<field name="model">py3o.server</field> | ||
<field name="arch" type="xml"> | ||
<form string="Py3o Server Configuration"> | ||
<group> | ||
<field name="url" widget="url"/> | ||
<field name="is_active" /> | ||
</group> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
<record id="py3o_server_configuration_tree_view" model="ir.ui.view"> | ||
<field name="name">py3o.server.configuration.tree.view</field> | ||
<field name="model">py3o.server</field> | ||
<field name="arch" type="xml"> | ||
<tree string="Py3o Servers Configuration"> | ||
<field name="url" /> | ||
<record id="py3o_server_configuration_form_view" model="ir.ui.view"> | ||
<field name="name">py3o.server.configuration.form.view</field> | ||
<field name="model">py3o.server</field> | ||
<field name="arch" type="xml"> | ||
<form string="Py3o Server Configuration"> | ||
<group name="main"> | ||
<field name="url" widget="url"/> | ||
<field name="is_active" /> | ||
</tree> | ||
</field> | ||
</record> | ||
</group> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
<record id="py3o_server_configuration_action" model="ir.actions.act_window"> | ||
<field name="name">Py3o Servers</field> | ||
<field name="res_model">py3o.server</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
<record id="py3o_server_configuration_tree_view" model="ir.ui.view"> | ||
<field name="name">py3o.server.configuration.tree.view</field> | ||
<field name="model">py3o.server</field> | ||
<field name="arch" type="xml"> | ||
<tree string="Py3o Servers Configuration"> | ||
<field name="url" /> | ||
<field name="is_active" /> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record id="py3o_server_configuration_action" model="ir.actions.act_window"> | ||
<field name="name">Py3o Servers</field> | ||
<field name="res_model">py3o.server</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<menuitem id="py3o_server_configuration_menu" | ||
parent="py3o_config_menu" | ||
action="py3o_server_configuration_action" /> | ||
|
||
<menuitem id="py3o_server_configuration_menu" | ||
parent="py3o_config_menu" | ||
action="py3o_server_configuration_action" /> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data> | ||
<record id="py3o_template_configuration_search_view" model="ir.ui.view"> | ||
<field name="name">py3o.template.configuration.search.view</field> | ||
<field name="model">py3o.template</field> | ||
<field name="arch" type="xml"> | ||
<search string="Py3o Templates Configuration"> | ||
<field name="name" /> | ||
<field name="filetype" /> | ||
<group string="Group By" name="groupby"> | ||
<filter name="filetype_groupby" string="File Type" | ||
context="{'group_by': 'filetype'}"/> | ||
</group> | ||
</search> | ||
</field> | ||
</record> | ||
|
||
<record id="py3o_template_configuration_form_view" model="ir.ui.view"> | ||
<field name="name">py3o.template.configuration.form.view</field> | ||
<field name="model">py3o.template</field> | ||
<field name="arch" type="xml"> | ||
<form string="Py3o Templates Configuration"> | ||
<group> | ||
<field name="name" /> | ||
<field name="filetype" /> | ||
<field name="py3o_template_data" /> | ||
</group> | ||
</form> | ||
</field> | ||
</record> | ||
<record id="py3o_template_configuration_search_view" model="ir.ui.view"> | ||
<field name="name">py3o.template.configuration.search.view</field> | ||
<field name="model">py3o.template</field> | ||
<field name="arch" type="xml"> | ||
<search string="Py3o Templates"> | ||
<field name="name" /> | ||
<field name="filetype" /> | ||
<group string="Group By" name="groupby"> | ||
<filter name="filetype_groupby" string="File Type" | ||
context="{'group_by': 'filetype'}"/> | ||
</group> | ||
</search> | ||
</field> | ||
</record> | ||
|
||
<record id="py3o_template_configuration_tree_view" model="ir.ui.view"> | ||
<field name="name">py3o.template.configuration.tree.view</field> | ||
<field name="model">py3o.template</field> | ||
<field name="arch" type="xml"> | ||
<tree string="Py3o Templates Configuration"> | ||
<record id="py3o_template_configuration_form_view" model="ir.ui.view"> | ||
<field name="name">py3o.template.configuration.form.view</field> | ||
<field name="model">py3o.template</field> | ||
<field name="arch" type="xml"> | ||
<form string="Py3o Templates"> | ||
<group name="main"> | ||
<field name="name" /> | ||
<field name="filetype" /> | ||
</tree> | ||
</field> | ||
</record> | ||
<field name="py3o_template_data" /> | ||
</group> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
<record id="py3o_template_configuration_tree_view" model="ir.ui.view"> | ||
<field name="name">py3o.template.configuration.tree.view</field> | ||
<field name="model">py3o.template</field> | ||
<field name="arch" type="xml"> | ||
<tree string="Py3o Templates"> | ||
<field name="name" /> | ||
<field name="filetype" /> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record id="py3o_template_configuration_action" model="ir.actions.act_window"> | ||
<field name="name">Py3o Templates</field> | ||
<field name="res_model">py3o.template</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<record id="py3o_template_configuration_action" model="ir.actions.act_window"> | ||
<field name="name">Py3o Templates</field> | ||
<field name="res_model">py3o.template</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
<menuitem id="py3o_template_configuration_menu" | ||
parent="py3o_config_menu" | ||
action="py3o_template_configuration_action" /> | ||
|
||
<menuitem id="py3o_template_configuration_menu" | ||
parent="py3o_config_menu" | ||
action="py3o_template_configuration_action" /> | ||
</data> | ||
</odoo> |