Browse Source

[ADD] Group 'Edit Favicon'

pull/1060/head
tarteo 7 years ago
committed by Pedro M. Baeza
parent
commit
d45b103b10
  1. 3
      web_favicon/README.rst
  2. 4
      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
----------

4
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,
}

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