Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup/support_branding/odoo/addons/support_branding
6 changes: 6 additions & 0 deletions setup/support_branding/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
80 changes: 80 additions & 0 deletions support_branding/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
================
Support Branding
================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/14.0/support_branding
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-support_branding
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/162/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

If you run an Odoo support company and you support customers without an OPW,
you can brand the Odoo instance accordingly using this module. This module will
add a support company url to profile menu under, `Support`. Moreover,
it will add a button to mail exception messages to your support email address.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20support_branding%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Therp BV
* Sunflower IT

Contributors
~~~~~~~~~~~~

* Holger Brunn <hbrunn@therp.nl>
* Stefan Rijnhart <srijnhart@therp.nl>
* Robert Rottermann <robert@redo2oo.ch>
* Kevin Kamau <kevin@sunflowerweb.nl>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/web <https://github.com/OCA/web/tree/14.0/support_branding>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
7 changes: 7 additions & 0 deletions support_branding/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2012-2015 Therp BV (<http://therp.nl>)
# Copyright 2016 - Tecnativa - Angel Moya <odoo@tecnativa.com>
# Copyright 2017 - redO2oo - Robert Rottermann <robert@redO2oo.ch>
# Copyright 2021 Sunflower IT
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
24 changes: 24 additions & 0 deletions support_branding/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2012-2015 Therp BV (<http://therp.nl>)
# Copyright 2016 - Tecnativa - Angel Moya <odoo@tecnativa.com>
# Copyright 2017 - redO2oo - Robert Rottermann <robert@redO2oo.ch>
# Copyright 2021 Sunflower IT (<https://www.sunflowerweb.nl>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Support Branding",
"summary": "Adds your branding to an Odoo instance",
"category": "Hidden/Tools",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "Therp BV,Sunflower IT,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"depends": ["web", "base_setup"],
"qweb": [
"static/src/xml/base.xml",
],
"data": ["views/asset.xml", "views/res_config_settings.xml"],
"demo": [
"demo/ir_config_parameter_data.xml",
],
"installable": True,
}
25 changes: 25 additions & 0 deletions support_branding/demo/ir_config_parameter_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data noupdate="0">
<record id="demo_config_parameter_company_name" model="ir.config_parameter">
<field name="key">support_company</field>
<field name="value">Odoo Community Association</field>
</record>
<record id="demo_config_parameter_company_url" model="ir.config_parameter">
<field name="key">support_company_url</field>
<field name="value">https://odoo-community.org</field>
</record>
<record id="demo_config_parameter_company_color" model="ir.config_parameter">
<field name="key">support_branding_color</field>
<field name="value">#fff</field>
</record>
<record id="demo_config_parameter_support_email" model="ir.config_parameter">
<field name="key">support_email</field>
<field name="value">oca@example.com</field>
</record>
<record id="demo_config_parameter_release" model="ir.config_parameter">
<field name="key">support_release</field>
<field name="value">14.0</field>
</record>
</data>
</odoo>
49 changes: 49 additions & 0 deletions support_branding/i18n/nl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * support_branding
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-30 10:05+0000\n"
"PO-Revision-Date: 2015-01-30 10:05+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: support_branding
#: model:ir.ui.view,arch_db:support_branding.menu_secondary
msgid ", supported by"
msgstr ", ondersteund door"

#. module: support_branding
#. openerp-web
#: code:addons/support_branding/static/src/js/support_branding.js:88
#, python-format
msgid "Email to %s"
msgstr "E-mail naar %s"

#. module: support_branding
#. openerp-web
#: code:addons/support_branding/static/src/xml/base.xml:12
#, python-format
msgid "Email to support company"
msgstr "E-mail naar ondersteunend bedrijf"

#. module: support_branding
#. openerp-web
#: code:addons/support_branding/static/src/xml/base.xml:10
#, python-format
msgid "Please fill in how you produced this error..."
msgstr "Beschrijft u alstublieft de stappen om deze fout te reproduceren..."

#. module: support_branding
#: model:ir.ui.view,arch_db:support_branding.menu_secondary
#, fuzzy
msgid "Version"
msgstr "Versie "
51 changes: 51 additions & 0 deletions support_branding/i18n/sl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * support_branding
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-08-02 10:23+0200\n"
"PO-Revision-Date: 2015-08-02 10:24+0200\n"
"Last-Translator: Matjaz Mozetic <m.mozetic@matmoz.si>\n"
"Language-Team: \n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3);\n"
"X-Generator: Poedit 1.8.2\n"

#. module: support_branding
#: model:ir.ui.view,arch_db:support_branding.menu_secondary
msgid ", supported by"
msgstr ", podpora"

#. module: support_branding
#. openerp-web
#: code:addons/support_branding/static/src/js/support_branding.js:88
#, python-format
msgid "Email to %s"
msgstr "E-pošta za %s"

#. module: support_branding
#. openerp-web
#: code:addons/support_branding/static/src/xml/base.xml:12
#, fuzzy, python-format
msgid "Email to support company"
msgstr "E-pošta za družbo"

#. module: support_branding
#. openerp-web
#: code:addons/support_branding/static/src/xml/base.xml:10
#, python-format
msgid "Please fill in how you produced this error..."
msgstr "Opišite, kako ste prišli do te napake..."

#. module: support_branding
#: model:ir.ui.view,arch_db:support_branding.menu_secondary
#, fuzzy
msgid "Version"
msgstr "Verzija"
46 changes: 46 additions & 0 deletions support_branding/i18n/support_branding.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * support_branding
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: support_branding
#: model:ir.ui.view,arch_db:support_branding.menu_secondary
msgid ", supported by"
msgstr ""

#. module: support_branding
#. openerp-web
#: code:addons/support_branding/static/src/js/support_branding.js:88
#, python-format
msgid "Email to %s"
msgstr ""

#. module: support_branding
#. openerp-web
#: code:addons/support_branding/static/src/xml/base.xml:12
#, python-format
msgid "Email to support company"
msgstr ""

#. module: support_branding
#. openerp-web
#: code:addons/support_branding/static/src/xml/base.xml:10
#, python-format
msgid "Please fill in how you produced this error..."
msgstr ""

#. module: support_branding
#: model:ir.ui.view,arch_db:support_branding.menu_secondary
msgid "Version"
msgstr ""

4 changes: 4 additions & 0 deletions support_branding/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2021 Sunflower IT
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import res_config_settings
36 changes: 36 additions & 0 deletions support_branding/models/res_config_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2021 Sunflower IT
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"

def get_values(self):
res = super(ResConfigSettings, self).get_values()
param_obj = self.env["ir.config_parameter"].sudo()
res.update(
support_company=param_obj.get_param("support_company"),
support_company_url=param_obj.get_param("support_company_url"),
support_email=param_obj.get_param("support_email"),
support_release=param_obj.get_param("support_release"),
support_branding_color=param_obj.get_param("support_branding_color"),
)
return res

def set_values(self):
res = super(ResConfigSettings, self).set_values()
param_obj = self.env["ir.config_parameter"].sudo()
param_obj.set_param("support_company", self.support_company)
param_obj.set_param("support_company_url", self.support_company_url)
param_obj.set_param("support_email", self.support_email)
param_obj.set_param("support_release", self.support_release)
param_obj.set_param("support_branding_color", self.support_branding_color)
return res

support_company = fields.Char(string="Company Name")
support_company_url = fields.Char(string="Company URL")
support_branding_color = fields.Char(string="Branding color")
support_email = fields.Char(string="Support email")
support_release = fields.Char(string="Support release")
4 changes: 4 additions & 0 deletions support_branding/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Holger Brunn <hbrunn@therp.nl>
* Stefan Rijnhart <srijnhart@therp.nl>
* Robert Rottermann <robert@redo2oo.ch>
* Kevin Kamau <kevin@sunflowerweb.nl>
4 changes: 4 additions & 0 deletions support_branding/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
If you run an Odoo support company and you support customers without an OPW,
you can brand the Odoo instance accordingly using this module. This module will
add a support company url to profile menu under, `Support`. Moreover,
it will add a button to mail exception messages to your support email address.
Binary file added support_branding/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading