Browse Source
[RFR] split off the fusion server to its own module
[RFR] split off the fusion server to its own module
use libreoffice for conversions in the base version. Fixes #17914.0-report-py3o-pr-506
Holger Brunn
7 years ago
committed by
default
14 changed files with 108 additions and 308 deletions
-
123report_py3o/README.rst
-
3report_py3o/__manifest__.py
-
2report_py3o/demo/report_py3o.xml
-
1report_py3o/models/__init__.py
-
22report_py3o/models/ir_actions_report_xml.py
-
90report_py3o/models/py3o_report.py
-
15report_py3o/models/py3o_server.py
-
4report_py3o/models/py3o_template.py
-
2report_py3o/security/ir.model.access.csv
-
BINreport_py3o/static/description/icon.png
-
112report_py3o/tests/test_report_py3o.py
-
2report_py3o/views/ir_report.xml
-
38report_py3o/views/py3o_server.xml
-
2report_py3o/views/py3o_template.xml
@ -1,5 +1,4 @@ |
|||
from . import ir_actions_report_xml |
|||
from . import py3o_template |
|||
from . import py3o_server |
|||
from . import report |
|||
from . import py3o_report |
@ -1,15 +0,0 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2013 XCG Consulting (http://odoo.consulting) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class Py3oServer(models.Model): |
|||
_name = 'py3o.server' |
|||
_rec_name = 'url' |
|||
|
|||
url = fields.Char( |
|||
"Py3o Fusion Server URL", required=True, |
|||
help="If your Py3o Fusion server is on the same machine and runs " |
|||
"on the default port, the URL is http://localhost:8765/form") |
|||
is_active = fields.Boolean("Active", default=True) |
@ -1,5 +1,3 @@ |
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink |
|||
access_py3o_template_admin,access_py3o_template_admin,model_py3o_template,base.group_no_one,1,1,1,1 |
|||
access_py3o_template_user,access_py3o_template_user,model_py3o_template,base.group_user,1,0,0,0 |
|||
access_py3o_server_admin,access_py3o_server_admin,model_py3o_server,base.group_no_one,1,1,1,1 |
|||
access_py3o_server_user,access_py3o_server_user,model_py3o_server,base.group_user,1,0,0,0 |
After Width: 128 | Height: 128 | Size: 9.2 KiB |
@ -1,38 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
|
|||
<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" /> |
|||
</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" /> |
|||
<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" /> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue