diff --git a/bi_view_editor/models/bve_view.py b/bi_view_editor/models/bve_view.py index 4f287a17..b6b452ab 100644 --- a/bi_view_editor/models/bve_view.py +++ b/bi_view_editor/models/bve_view.py @@ -36,7 +36,7 @@ class BveView(models.Model): default="draft") data = fields.Text( string="Data", - help="Use the special Onestein query builder to define the query " + help="Use the special query builder to define the query " "to generate your report dataset. " "NOTE: Te be edited, the query should be in 'Draft' status.") @@ -89,8 +89,10 @@ class BveView(models.Model): self.action_id.view_id.sudo().unlink() self.action_id.sudo().unlink() - self.env['ir.model'].sudo().search( - [('model', '=', self.model_name)]).unlink() + models = self.env['ir.model'].sudo().search( + [('model', '=', self.model_name)]) + for model in models: + model.sudo().unlink() table_name = self.model_name.replace(".", "_") tools.drop_view_if_exists(self.env.cr, table_name) @@ -255,6 +257,7 @@ class BveView(models.Model): from openerp.modules.registry import RegistryManager self.env.registry = RegistryManager.new(self.env.cr.dbname) + RegistryManager.signal_registry_change(self.env.cr.dbname) self.pool = self.env.registry view_id = self.pool.get('ir.ui.view').create( diff --git a/bi_view_editor/static/description/index.html b/bi_view_editor/static/description/index.html deleted file mode 100644 index f524f4af..00000000 --- a/bi_view_editor/static/description/index.html +++ /dev/null @@ -1,59 +0,0 @@ -
-
-

BI reporting concept

-

easy and effective.

-
-

- This module is a beta release of a smart and effective Odoo reporting tool. -

-

- Feel free to use and fix issues that you encounter. -

-
- -
-
- BI view editor -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/bi_view_editor/static/description/screen1.png b/bi_view_editor/static/description/screen1.png deleted file mode 100644 index bcdf31a1..00000000 Binary files a/bi_view_editor/static/description/screen1.png and /dev/null differ