From f155fcd5ce46edab4c412bfba08be777e4a04905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Sun, 2 Jul 2017 22:15:53 +0200 Subject: [PATCH] [IMP] ribbon: no need for the backend model to have a table --- web_environment_ribbon/__manifest__.py | 1 - .../models/web_environment_ribbon_backend.py | 2 +- .../security/web_environment_ribbon_backend.xml | 17 ----------------- 3 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 web_environment_ribbon/security/web_environment_ribbon_backend.xml diff --git a/web_environment_ribbon/__manifest__.py b/web_environment_ribbon/__manifest__.py index 5ac69f6e..f54195c8 100644 --- a/web_environment_ribbon/__manifest__.py +++ b/web_environment_ribbon/__manifest__.py @@ -17,7 +17,6 @@ 'web', ], "data": [ - 'security/web_environment_ribbon_backend.xml', 'view/base_view.xml', 'data/ribbon_data.xml', ], diff --git a/web_environment_ribbon/models/web_environment_ribbon_backend.py b/web_environment_ribbon/models/web_environment_ribbon_backend.py index aa4694f7..bb7b0f5a 100644 --- a/web_environment_ribbon/models/web_environment_ribbon_backend.py +++ b/web_environment_ribbon/models/web_environment_ribbon_backend.py @@ -5,7 +5,7 @@ from openerp import api, models -class WebEnvironmentRibbonBackend(models.Model): +class WebEnvironmentRibbonBackend(models.AbstractModel): _name = 'web.environment.ribbon.backend' _description = 'Web Environment Ribbon Backend' diff --git a/web_environment_ribbon/security/web_environment_ribbon_backend.xml b/web_environment_ribbon/security/web_environment_ribbon_backend.xml deleted file mode 100644 index 55199b4d..00000000 --- a/web_environment_ribbon/security/web_environment_ribbon_backend.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - web.environment.ribbon.backend access name - - - - - - - - -