@ -108,7 +108,7 @@ To use this module, you need to:
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
: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
======================
@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
from .hooks import uninstall_hook
@ -6,7 +6,7 @@
{
'name': 'BI SQL Editor',
'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',
'category': 'Reporting',
'author': 'GRAP,Odoo Community Association (OCA)',
@ -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).
-->
<odoo>
<data noupdate="1">
<odoo noupdate="1">
<record id="incorrect_sql_view" model="bi.sql.view">
<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')])"/>
</data>
</odoo>
@ -6,7 +6,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
<data>
<record id="base.group_no_one" model="res.groups">
<field name="users" eval="[(4, ref('base.user_root'))]" />
</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">
<field name="users" eval="[(4, ref('base.user_demo'))]" />
@ -1,8 +1,8 @@
# Copyright 2015-2017 Onestein (<http://www.onestein.eu>)
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):
from . import bi_sql_view
from . import bi_sql_view_field
@ -7,8 +7,8 @@ import logging
from datetime import datetime
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__)
@ -5,7 +5,7 @@
import re
from openerp import api, fields, models
from odoo import api, fields, models
class BiSQLViewField(models.Model):
@ -2,8 +2,8 @@
# Copyright 2017 Onestein (<http://www.onestein.eu>)
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):
@ -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).
<openerp><data>
<record id="action_bi_sql_view" model="ir.actions.act_window">
<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>
</data></openerp>
<!-- Menu that will contain all the SQL report generated by this module -->
<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"
action="action_bi_sql_view"/>
<record id="view_bi_sql_view_tree" model="ir.ui.view">
<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>