Browse Source

[10.0][IMP] Limit favicon editors in web_favicon (#607)

* [ADD] root user as default member of group
* [REM] Separate group for editing favicon
pull/649/head
Jairo Llopis 8 years ago
committed by GitHub
parent
commit
4d88189c98
  1. 3
      web_favicon/README.rst
  2. 6
      web_favicon/__manifest__.py
  3. 2
      web_favicon/views/res_company.xml

3
web_favicon/README.rst

@ -30,6 +30,8 @@ You have a sample SVG that can be used as template for generating your icon
in /static/src/img/master_original_favicon.svg. You can also search for some
favicon generators across the web.
To allow a user to edit the favicon it has to be member of group "Administration / Settings".
Usage
=====
@ -65,6 +67,7 @@ Contributors
* Holger Brunn <hbrunn@therp.nl>
* Pedro M. Baeza <pedro.baeza@gmail.com>
* Dennis Sluijk <d.sluijk@onestein.nl>
Maintainer
----------

6
web_favicon/__manifest__.py

@ -13,11 +13,11 @@
"category": "Website",
"summary": "Allows to set a custom shortcut icon (aka favicon)",
"depends": [
'web',
"web",
],
"data": [
"views/res_company.xml",
'views/templates.xml',
"views/templates.xml",
],
'installable': True,
"installable": True,
}

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">
<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