Browse Source

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

pull/796/head
Stéphane Bidoul (ACSONE) 7 years ago
committed by Pedro M. Baeza
parent
commit
4a79818139
  1. 1
      web_environment_ribbon/__manifest__.py
  2. 2
      web_environment_ribbon/models/web_environment_ribbon_backend.py
  3. 17
      web_environment_ribbon/security/web_environment_ribbon_backend.xml

1
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',
],

2
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'

17
web_environment_ribbon/security/web_environment_ribbon_backend.xml

@ -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>
Loading…
Cancel
Save