Skip to content
Permalink
Browse files

⬆️1️⃣2️⃣ theme_kit

  • Loading branch information...
GabbasovDinar committed Apr 24, 2019
1 parent fd78333 commit 93f63b0e8459a5829b9383c1ce14828767d3c5eb
Showing with 143 additions and 515 deletions.
  1. +4 −4 {theme_kit → web_theme_kit}/README.rst
  2. 0 {theme_kit → web_theme_kit}/__init__.py
  3. +3 −3 {theme_kit → web_theme_kit}/__manifest__.py
  4. +0 −76 {theme_kit → web_theme_kit}/data/theme_data.xml
  5. 0 {theme_kit → web_theme_kit}/doc/changelog.rst
  6. 0 {theme_kit → web_theme_kit}/doc/index.rst
  7. +1 −1 {theme_kit → web_theme_kit}/i18n/es_CR.po
  8. 0 {theme_kit → web_theme_kit}/i18n/fr.po
  9. 0 {theme_kit → web_theme_kit}/i18n/ru.po
  10. +1 −1 {theme_kit → web_theme_kit}/i18n/sl.po
  11. BIN {theme_kit → web_theme_kit}/images/brandkit.png
  12. 0 {theme_kit → web_theme_kit}/models/__init__.py
  13. +3 −2 {theme_kit → web_theme_kit}/models/res_config.py
  14. +121 −349 {theme_kit → web_theme_kit}/models/theme.py
  15. 0 {theme_kit → web_theme_kit}/security/ir.model.access.csv
  16. BIN {theme_kit → web_theme_kit}/static/description/debrand1.png
  17. BIN {theme_kit → web_theme_kit}/static/description/debrand2.png
  18. BIN {theme_kit → web_theme_kit}/static/description/debrand3.png
  19. BIN {theme_kit → web_theme_kit}/static/description/icon.png
  20. +2 −2 {theme_kit → web_theme_kit}/static/description/index.html
  21. BIN {theme_kit → web_theme_kit}/static/description/login.png
  22. BIN {theme_kit → web_theme_kit}/static/description/res.config.png
  23. BIN {theme_kit → web_theme_kit}/static/description/system-name.png
  24. BIN {theme_kit → web_theme_kit}/static/description/theme1.png
  25. BIN {theme_kit → web_theme_kit}/static/description/theme2.png
  26. BIN {theme_kit → web_theme_kit}/static/description/theme3.png
  27. BIN {theme_kit → web_theme_kit}/static/description/theme4.png
  28. 0 {theme_kit → web_theme_kit}/views/ir_attachment.xml
  29. +1 −1 {theme_kit → web_theme_kit}/views/res_config.xml
  30. +3 −3 {theme_kit → web_theme_kit}/views/templates.xml
  31. +4 −73 {theme_kit → web_theme_kit}/views/theme.xml
@@ -28,7 +28,7 @@ Maintainers
-----------
* `IT-Projects LLC <https://it-projects.info>`__

To get a guaranteed support you are kindly requested to purchase the module at `odoo apps store <https://apps.odoo.com/apps/modules/11.0/theme_kit/>`__.
To get a guaranteed support you are kindly requested to purchase the module at `odoo apps store <https://apps.odoo.com/apps/modules/12.0/theme_kit/>`__.

Thank you for understanding!

@@ -37,12 +37,12 @@ Maintainers
Further information
===================

Demo: http://runbot.it-projects.info/demo/misc-addons/11.0
Demo: http://runbot.it-projects.info/demo/misc-addons/12.0

HTML Description: https://apps.odoo.com/apps/modules/11.0/theme_kit/
HTML Description: https://apps.odoo.com/apps/modules/12.0/theme_kit/

Usage instructions: `<doc/index.rst>`_

Changelog: `<doc/changelog.rst>`_

Tested on Odoo 11.0 88ccc406035297210cadd5c6278f6f813899001e
Tested on Odoo 12.0 530f364547af1cc4ccfa9baa66cd70e564bc62cb
File renamed without changes.
@@ -5,9 +5,9 @@
"name": """Brand kit""",
"summary": """Brand your odoo instance in few clicks""",
"category": "Debranding",
# "live_test_url": "http://apps.it-projects.info/shop/product/theme-kit?version=11.0",
# "live_test_url": "http://apps.it-projects.info/shop/product/theme-kit?version=12.0",
"images": ['images/brandkit.png'],
"version": "11.0.1.1.2",
"version": "12.0.1.1.2",
"application": False,

"author": "IT-Projects LLC, Ivan Yelizariev",
@@ -40,7 +40,7 @@
"post_init_hook": None,

"auto_install": False,
"installable": False,
"installable": True,

"demo_title": "Brand kit",
"demo_addons": [
@@ -21,24 +21,6 @@
<field name="top_panel_hover_item_bg_active">True</field>
</record>

<record model="theme_kit.left_panel" id="burger_king_left_panel">
<field name="name">Burger King</field>
<field name="left_panel_bg">#ED7902</field>
<field name="left_panel_bg_active">True</field>
<field name="left_panel_main_menu"> #59291C</field>
<field name="left_panel_main_menu_active">True</field>
<field name="left_panel_sub_menu">#FFFFFF</field>
<field name="left_panel_sub_menu_active">True</field>
<field name="left_panel_active_item_font">#762823</field>
<field name="left_panel_active_item_font_active">True</field>
<field name="left_panel_active_item_bg">#FDBD10</field>
<field name="left_panel_active_item_bg_active">True</field>
<field name="left_panel_hover_item_font">#762823</field>
<field name="left_panel_hover_item_font_active">True</field>
<field name="left_panel_hover_item_bg">#FDBD10</field>
<field name="left_panel_hover_item_bg_active">True</field>
</record>

<record model="theme_kit.content" id="burger_king_content">
<field name="name">Burger King</field>
<field name="content_bg">#FDDE63</field>
@@ -58,7 +40,6 @@
<record model="theme_kit.theme" id="burger_king_theme">
<field name="name">Burger King</field>
<field name="top_panel_id" ref="burger_king_top_panel"/>
<field name="left_panel_id" ref="burger_king_left_panel"/>
<field name="content_id" ref="burger_king_content"/>
</record>
<!--Template You Tube-->
@@ -80,24 +61,6 @@
<field name="top_panel_hover_item_bg_active">True</field>
</record>

<record model="theme_kit.left_panel" id="you_tube_left_panel">
<field name="name">You Tube</field>
<field name="left_panel_bg">#FFFFFF</field>
<field name="left_panel_bg_active">True</field>
<field name="left_panel_main_menu">#CD201F</field>
<field name="left_panel_main_menu_active">True</field>
<field name="left_panel_sub_menu">#444444</field>
<field name="left_panel_sub_menu_active">True</field>
<field name="left_panel_active_item_font">#FFFFFF</field>
<field name="left_panel_active_item_font_active">True</field>
<field name="left_panel_active_item_bg">#CD201F</field>
<field name="left_panel_active_item_bg_active">True</field>
<field name="left_panel_hover_item_font">#FFFFFF</field>
<field name="left_panel_hover_item_font_active">True</field>
<field name="left_panel_hover_item_bg">#444444</field>
<field name="left_panel_hover_item_bg_active">True</field>
</record>

<record model="theme_kit.content" id="you_tube_content">
<field name="name">You Tube</field>
<field name="content_bg">#F1F1F1</field>
@@ -121,7 +84,6 @@
<record model="theme_kit.theme" id="you_tube_theme">
<field name="name">You Tube</field>
<field name="top_panel_id" ref="you_tube_top_panel"/>
<field name="left_panel_id" ref="you_tube_left_panel"/>
<field name="content_id" ref="you_tube_content"/>
</record>
<!--Template Coca-Cola-->
@@ -143,24 +105,6 @@
<field name="top_panel_hover_item_bg_active">True</field>
</record>

<record model="theme_kit.left_panel" id="cola_left_panel">
<field name="name">Coca-Cola</field>
<field name="left_panel_bg">#ED1C16</field>
<field name="left_panel_bg_active">True</field>
<field name="left_panel_main_menu">#FFFFFF</field>
<field name="left_panel_main_menu_active">True</field>
<field name="left_panel_sub_menu">#FFFFFF</field>
<field name="left_panel_sub_menu_active">True</field>
<field name="left_panel_active_item_font">#FFFFFF</field>
<field name="left_panel_active_item_font_active">True</field>
<field name="left_panel_active_item_bg">#000000</field>
<field name="left_panel_active_item_bg_active">True</field>
<field name="left_panel_hover_item_font">#FFFFFF</field>
<field name="left_panel_hover_item_font_active">True</field>
<field name="left_panel_hover_item_bg">#000000</field>
<field name="left_panel_hover_item_bg_active">True</field>
</record>

<record model="theme_kit.content" id="cola_content">
<field name="name">Coca-Cola</field>
<field name="content_bg">#FFFFFF</field>
@@ -184,7 +128,6 @@
<record model="theme_kit.theme" id="cola_theme">
<field name="name">Coca-Cola</field>
<field name="top_panel_id" ref="cola_top_panel"/>
<field name="left_panel_id" ref="cola_left_panel"/>
<field name="content_id" ref="cola_content"/>
</record>
<!--Template IKEA-->
@@ -206,24 +149,6 @@
<field name="top_panel_hover_item_bg_active">True</field>
</record>

<record model="theme_kit.left_panel" id="ikea_left_panel">
<field name="name">IKEA</field>
<field name="left_panel_bg">#003399</field>
<field name="left_panel_bg_active">True</field>
<field name="left_panel_main_menu">#FFCC00</field>
<field name="left_panel_main_menu_active">True</field>
<field name="left_panel_sub_menu">#FFCC00</field>
<field name="left_panel_sub_menu_active">True</field>
<field name="left_panel_active_item_font">#003399</field>
<field name="left_panel_active_item_font_active">True</field>
<field name="left_panel_active_item_bg">#FFCC00</field>
<field name="left_panel_active_item_bg_active">True</field>
<field name="left_panel_hover_item_font">#003399</field>
<field name="left_panel_hover_item_font_active">True</field>
<field name="left_panel_hover_item_bg">#FFCC00</field>
<field name="left_panel_hover_item_bg_active">True</field>
</record>

<record model="theme_kit.content" id="ikea_content">
<field name="name">IKEA</field>
<field name="content_bg">#FFCC00</field>
@@ -247,7 +172,6 @@
<record model="theme_kit.theme" id="ikea_theme">
<field name="name">IKEA</field>
<field name="top_panel_id" ref="ikea_top_panel"/>
<field name="left_panel_id" ref="ikea_left_panel"/>
<field name="content_id" ref="ikea_content"/>
</record>

File renamed without changes.
File renamed without changes.
@@ -6,7 +6,7 @@
# Randall <randall_castro@me.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-30 21:57+0000\n"
"PO-Revision-Date: 2018-04-30 21:57+0000\n"
File renamed without changes.
File renamed without changes.
@@ -6,7 +6,7 @@
# Translation Bot <i18n-bot@it-projects.info>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-17 16:30+0000\n"
"PO-Revision-Date: 2018-04-17 16:30+0000\n"
File renamed without changes.
File renamed without changes.
@@ -7,7 +7,7 @@
from openerp import models, fields, api

CUSTOM_CSS_ARCH = '''<?xml version="1.0"?>
<t t-name="theme_kit.custom_css">
<t t-name="web_theme_kit.custom_css">
%s
</t>
'''
@@ -17,6 +17,7 @@ class Config(models.TransientModel):

_name = 'theme_kit.config'
_inherit = 'res.config.settings'
_description = 'Theme Kit Config'

theme_id = fields.Many2one('theme_kit.theme', string="Color Scheme")
favicon_id = fields.Many2one('ir.attachment', string="Favicon")
@@ -84,7 +85,7 @@ def set_values(self):
self.env.user.company_id.logo = self.company_logo

# set theme
custom_css = self.env.ref('theme_kit.custom_css')
custom_css = self.env.ref('web_theme_kit.custom_css')
code = ''
if self.theme_id:
code = self.theme_id.code
Oops, something went wrong.

0 comments on commit 93f63b0

Please sign in to comment.
You can’t perform that action at this time.