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

6
web_favicon/__manifest__.py

@ -13,11 +13,11 @@
"category": "Website", "category": "Website",
"summary": "Allows to set a custom shortcut icon (aka favicon)", "summary": "Allows to set a custom shortcut icon (aka favicon)",
"depends": [ "depends": [
'web',
"web",
], ],
"data": [ "data": [
"views/res_company.xml", "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="inherit_id" ref="base.view_company_form" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<notebook position="inside"> <notebook position="inside">
<page string="Web Favicon" name="favicon">
<page string="Web Favicon" name="favicon" groups="base.group_system">
<group string="Favicon" name="favicon"> <group string="Favicon" name="favicon">
<field name="favicon_backend" widget="image" /> <field name="favicon_backend" widget="image" />
<field name="favicon_backend_mimetype" attrs="{'required': [('favicon_backend', '!=', False)]}" /> <field name="favicon_backend_mimetype" attrs="{'required': [('favicon_backend', '!=', False)]}" />

Loading…
Cancel
Save