Browse Source

[ADD] Group 'Edit Favicon'

pull/1060/head
tarteo 8 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 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
---------- ----------

4
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