Browse Source

[REM] Separate group for editing favicon

pull/607/head
tarteo 8 years ago
parent
commit
6978280f98
  1. 1
      web_favicon/README.rst
  2. 8
      web_favicon/security/web_favicon_security.xml
  3. 2
      web_favicon/views/res_company.xml

1
web_favicon/README.rst

@ -67,6 +67,7 @@ Contributors
* Holger Brunn <hbrunn@therp.nl>
* Pedro M. Baeza <pedro.baeza@gmail.com>
* Dennis Sluijk <d.sluijk@onestein.nl>
Maintainer
----------

8
web_favicon/security/web_favicon_security.xml

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="group_edit_favicon" model="res.groups">
<field name="name">Edit Favicon</field>
<field name="category_id" ref="base.module_category_hidden"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
</odoo>

2
web_favicon/views/res_company.xml

@ -5,7 +5,7 @@
<field name="inherit_id" ref="base.view_company_form" />
<field name="arch" type="xml">
<notebook position="inside">
<page string="Web Favicon" name="favicon" groups="web_favicon.group_edit_favicon">
<page string="Web Favicon" name="favicon" groups="base.group_system">
<group string="Favicon" name="favicon">
<field name="favicon_backend" widget="image" />
<field name="favicon_backend_mimetype" attrs="{'required': [('favicon_backend', '!=', False)]}" />

Loading…
Cancel
Save