Browse Source
[IMP] ribbon: no need for the backend model to have a table
pull/661/head
Stéphane Bidoul (ACSONE)
8 years ago
No known key found for this signature in database
GPG Key ID: 866D394B4986F82D
3 changed files with
1 additions and
19 deletions
-
web_environment_ribbon/__manifest__.py
-
web_environment_ribbon/models/web_environment_ribbon_backend.py
-
web_environment_ribbon/security/web_environment_ribbon_backend.xml
|
|
@ -17,7 +17,6 @@ |
|
|
|
'web', |
|
|
|
], |
|
|
|
"data": [ |
|
|
|
'security/web_environment_ribbon_backend.xml', |
|
|
|
'view/base_view.xml', |
|
|
|
'data/ribbon_data.xml', |
|
|
|
], |
|
|
|
|
|
@ -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' |
|
|
|
|
|
@ -1,17 +0,0 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<!-- Copyright 2017 ACSONE SA/NV |
|
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> |
|
|
|
|
|
|
|
<odoo> |
|
|
|
|
|
|
|
<record model="ir.model.access" id="web_environment_ribbon_backend_access_name"> |
|
|
|
<field name="name">web.environment.ribbon.backend access name</field> |
|
|
|
<field name="model_id" ref="model_web_environment_ribbon_backend"/> |
|
|
|
<field name="group_id" ref="base.group_user"/> |
|
|
|
<field name="perm_read" eval="1"/> |
|
|
|
<field name="perm_create" eval="0"/> |
|
|
|
<field name="perm_write" eval="0"/> |
|
|
|
<field name="perm_unlink" eval="0"/> |
|
|
|
</record> |
|
|
|
|
|
|
|
</odoo> |