Unverified Commit f155fcd5 authored by Stéphane Bidoul (ACSONE)'s avatar Stéphane Bidoul (ACSONE)
Browse files

[IMP] ribbon: no need for the backend model to have a table

parent 28d935d8
......@@ -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'
......
<?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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment