Browse Source

[MIG] bi_sql_editor v10

pull/264/head
Darshan Patel 7 years ago
committed by Adrià Gil Sorribes
parent
commit
002f58c860
  1. 2
      bi_sql_editor/README.rst
  2. 1
      bi_sql_editor/__init__.py
  3. 2
      bi_sql_editor/__manifest__.py
  4. 4
      bi_sql_editor/demo/bi_sql_view_demo.xml
  5. 2
      bi_sql_editor/demo/res_groups_demo.xml
  6. 4
      bi_sql_editor/hooks.py
  7. 1
      bi_sql_editor/models/__init__.py
  8. 4
      bi_sql_editor/models/bi_sql_view.py
  9. 2
      bi_sql_editor/models/bi_sql_view_field.py
  10. 4
      bi_sql_editor/tests/test_bi_sql_view.py
  11. 4
      bi_sql_editor/views/action.xml
  12. 4
      bi_sql_editor/views/menu.xml
  13. 4
      bi_sql_editor/views/view_bi_sql_view.xml

2
bi_sql_editor/README.rst

@ -108,7 +108,7 @@ To use this module, you need to:
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/143/8.0
:target: https://runbot.odoo-community.org/runbot/143/10.0
Known issues / Roadmap Known issues / Roadmap
====================== ======================

1
bi_sql_editor/__init__.py

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models from . import models
from .hooks import uninstall_hook from .hooks import uninstall_hook

2
bi_sql_editor/__openerp__.py → bi_sql_editor/__manifest__.py

@ -6,7 +6,7 @@
{ {
'name': 'BI SQL Editor', 'name': 'BI SQL Editor',
'summary': "BI Views builder, based on Materialized or Normal SQL Views", 'summary': "BI Views builder, based on Materialized or Normal SQL Views",
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'license': 'AGPL-3', 'license': 'AGPL-3',
'category': 'Reporting', 'category': 'Reporting',
'author': 'GRAP,Odoo Community Association (OCA)', 'author': 'GRAP,Odoo Community Association (OCA)',

4
bi_sql_editor/demo/bi_sql_view_demo.xml

@ -5,8 +5,7 @@ Copyright (C) 2014 - Today GRAP (http://www.grap.coop)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
--> -->
<odoo>
<data noupdate="1">
<odoo noupdate="1">
<record id="incorrect_sql_view" model="bi.sql.view"> <record id="incorrect_sql_view" model="bi.sql.view">
<field name="name">Draft Incorrect SQL View</field> <field name="name">Draft Incorrect SQL View</field>
@ -55,5 +54,4 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
<function model="bi.sql.view" name="button_create_ui" eval="([ref('module_sql_view')])"/> <function model="bi.sql.view" name="button_create_ui" eval="([ref('module_sql_view')])"/>
</data>
</odoo> </odoo>

2
bi_sql_editor/demo/res_groups_demo.xml

@ -6,7 +6,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
--> -->
<odoo> <odoo>
<data>
<record id="base.group_no_one" model="res.groups"> <record id="base.group_no_one" model="res.groups">
<field name="users" eval="[(4, ref('base.user_root'))]" /> <field name="users" eval="[(4, ref('base.user_root'))]" />
</record> </record>
@ -14,5 +13,4 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
<record id="sql_request_abstract.group_sql_request_user" model="res.groups"> <record id="sql_request_abstract.group_sql_request_user" model="res.groups">
<field name="users" eval="[(4, ref('base.user_demo'))]" /> <field name="users" eval="[(4, ref('base.user_demo'))]" />
</record> </record>
</data>
</odoo> </odoo>

4
bi_sql_editor/hooks.py

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2015-2017 Onestein (<http://www.onestein.eu>) # Copyright 2015-2017 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import SUPERUSER_ID
from openerp.api import Environment
from odoo import SUPERUSER_ID
from odoo.api import Environment
def uninstall_hook(cr, registry): def uninstall_hook(cr, registry):

1
bi_sql_editor/models/__init__.py

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import bi_sql_view from . import bi_sql_view
from . import bi_sql_view_field from . import bi_sql_view_field

4
bi_sql_editor/models/bi_sql_view.py

@ -7,8 +7,8 @@ import logging
from datetime import datetime from datetime import datetime
from psycopg2 import ProgrammingError from psycopg2 import ProgrammingError
from openerp import _, api, fields, models, SUPERUSER_ID
from openerp.exceptions import Warning as UserError
from odoo import _, api, fields, models, SUPERUSER_ID
from odoo.exceptions import UserError
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)

2
bi_sql_editor/models/bi_sql_view_field.py

@ -5,7 +5,7 @@
import re import re
from openerp import api, fields, models
from odoo import api, fields, models
class BiSQLViewField(models.Model): class BiSQLViewField(models.Model):

4
bi_sql_editor/tests/test_bi_sql_view.py

@ -2,8 +2,8 @@
# Copyright 2017 Onestein (<http://www.onestein.eu>) # Copyright 2017 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp.tests.common import TransactionCase, at_install, post_install
from openerp.exceptions import AccessError
from odoo.tests.common import TransactionCase, at_install, post_install
from odoo.exceptions import AccessError
class TestBiSqlViewEditor(TransactionCase): class TestBiSqlViewEditor(TransactionCase):

4
bi_sql_editor/views/action.xml

@ -5,7 +5,7 @@ Copyright (C) 2017 - Today: GRAP (http://www.grap.coop)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
--> -->
<openerp><data>
<odoo>
<record id="action_bi_sql_view" model="ir.actions.act_window"> <record id="action_bi_sql_view" model="ir.actions.act_window">
<field name="name">SQL Views</field> <field name="name">SQL Views</field>
@ -15,4 +15,4 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
</record> </record>
</data></openerp>
</odoo>

4
bi_sql_editor/views/menu.xml

@ -5,7 +5,7 @@ Copyright (C) 2017 - Today: GRAP (http://www.grap.coop)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
--> -->
<openerp><data>
<odoo>
<!-- Menu that will contain all the SQL report generated by this module --> <!-- Menu that will contain all the SQL report generated by this module -->
<menuitem id="menu_bi_sql_editor" <menuitem id="menu_bi_sql_editor"
@ -17,4 +17,4 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
parent="base.next_id_9" parent="base.next_id_9"
action="action_bi_sql_view"/> action="action_bi_sql_view"/>
</data></openerp>
</odoo>

4
bi_sql_editor/views/view_bi_sql_view.xml

@ -5,7 +5,7 @@ Copyright (C) 2017 - Today: GRAP (http://www.grap.coop)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
--> -->
<openerp><data>
<odoo>
<record id="view_bi_sql_view_tree" model="ir.ui.view"> <record id="view_bi_sql_view_tree" model="ir.ui.view">
<field name="model">bi.sql.view</field> <field name="model">bi.sql.view</field>
@ -126,4 +126,4 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
</field> </field>
</record> </record>
</data></openerp>
</odoo>
Loading…
Cancel
Save