Browse Source

[ADD] Initial Commit

8.0
SHEREEF PT 8 years ago
parent
commit
7e772c4214
  1. 15
      editable_theme/README.rst
  2. 8
      editable_theme/__openerp__.py
  3. 4
      editable_theme/models/__init__.py
  4. 0
      editable_theme/models/controller.py
  5. 3
      editable_theme/models/res_config_settings.py
  6. BIN
      editable_theme/static/src/img/icons/icon_pictures.png
  7. 16
      editable_theme/static/src/js/js_role.js
  8. 2
      editable_theme/template/template.xml

15
editable_theme/README.rst

@ -0,0 +1,15 @@
Custom Backend Appearance v8
============================
You can simply change font colour and background colour using this Module.
Features
========
* Your own colors on your interface.
* Custom Font Colour of Top Menu.
* Custom Font Colour of Sidebar Child Menu.
* Custom BackGround Colour of Sidebar.
Credits
=======
Nilmar Shereef
Shameem Babu

8
editable_theme/__openerp__.py

@ -6,19 +6,13 @@
'company': 'Cybrosys Techno Solutions',
'website': 'http://www.cybrosys.com',
'category': 'Theme',
'version': '1.0',
'version': '2.0',
'depends': [
'base',
'web_widget_color', ],
'data': ['template/template.xml',
'views/theme_view.xml',
],
'installable': True,
'auto_install': False,
'application': True,

4
editable_theme/models/__init__.py

@ -1,2 +1,2 @@
import themes
import play_with_js
import res_config_settings
import controller

0
editable_theme/models/play_with_js.py → editable_theme/models/controller.py

3
editable_theme/models/themes.py → editable_theme/models/res_config_settings.py

@ -1,5 +1,4 @@
from openerp import models, fields, api, http, SUPERUSER_ID
from openerp.http import request
class MenuThemes(models.Model):
@ -13,11 +12,9 @@ class MenuThemes(models.Model):
top_image = fields.Binary('Top BackGround Image')
sidebar_font_color = fields.Char('Font Colour of Sidebar Child Menu', default='#FFFFFF')
sidebar_font_color_parent = fields.Char('Font Colour of Sidebar Parent Menu', default='#FFDC63')
top_font_color = fields.Char('Font Colour of Top Menu', default='#FFFFFF')
top_background_color = fields.Char('BackGround Colour of Top Menu', default='#B71E17')
sidebar_background_color = fields.Char('BackGround Colour of Sidebar', default='#464746')
font_common = fields.Selection([('sans-serif', 'Sans-Serif'),
('serif', 'Serif'),
('monospace', 'Monospace'), ], default='monospace')

BIN
editable_theme/static/src/img/icons/icon_pictures.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 KiB

After

Width:  |  Height:  |  Size: 0 B

16
editable_theme/static/src/js/js_role.js

@ -42,21 +42,5 @@ $('.oe_view_manager_buttons').click(function(){alert()});
//SIDE
$(".oe_leftbar").css("font-family", sideBar_background_COLOR_CODE);
$("a").css("font-family", sideBar_background_COLOR_CODE);
// $("table > body").css("font-family", sideBar_background_COLOR_CODE);
// .oe_form .oe_form_label[for] {
// white-space: nowrap;
// padding-right: 8px;
// font-family: monospace;
//}
});
})

2
editable_theme/template/template.xml

@ -1,13 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="assets_backend" name="load desert js and css assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/editable_theme/static/css/backend_style.css"/>
<script type="text/javascript" src="/editable_theme/static/src/js/js_role.js"></script>
</xpath>
</template>
</data>
</openerp>
Loading…
Cancel
Save