9 changed files with 169 additions and 32 deletions
-
7muk_web_glyphicons/README.md
-
2muk_web_glyphicons/__init__.py
-
17muk_web_glyphicons/__manifest__.py
-
5muk_web_glyphicons/doc/changelog.rst
-
49muk_web_glyphicons/doc/index.rst
-
42muk_web_glyphicons/static/description/index.html
-
27muk_web_glyphicons/static/src/js/glyphicons.js
-
20muk_web_glyphicons/static/src/less/glyphicons.less
-
30muk_web_glyphicons/template/assets.xml
@ -1,7 +0,0 @@ |
|||||
# Bootstrap Glyphicons Support |
|
||||
|
|
||||
Odoo does not natively support the Glyphicons from Bootstrap although |
|
||||
it uses the framework. This module enables the Bootstrap Glyphicons. |
|
||||
|
|
||||
The Glyphicons from Font Awesome which are used by Odoo will still |
|
||||
be available. |
|
@ -1,3 +1,8 @@ |
|||||
|
`2.0.0` |
||||
|
------- |
||||
|
|
||||
|
- Migrated to Python 3 |
||||
|
|
||||
`1.0.0` |
`1.0.0` |
||||
------- |
------- |
||||
|
|
||||
|
@ -0,0 +1,49 @@ |
|||||
|
============================ |
||||
|
Bootstrap Glyphicons Support |
||||
|
============================ |
||||
|
|
||||
|
Odoo does not natively support the Glyphicons from Bootstrap although |
||||
|
it uses the framework. This module enables the Bootstrap Glyphicons. |
||||
|
|
||||
|
The Glyphicons from Font Awesome which are used by Odoo will still |
||||
|
be available. |
||||
|
|
||||
|
Installation |
||||
|
============ |
||||
|
|
||||
|
To install this module, you need to: |
||||
|
|
||||
|
Download the module and add it to your Odoo addons folder. Afterward, log on to |
||||
|
your Odoo server and go to the Apps menu. Trigger the debug modus and update the |
||||
|
list by clicking on the "Update Apps List" link. Now install the module by |
||||
|
clicking on the install button. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
|
||||
|
No additional configuration is needed to use this module. |
||||
|
|
||||
|
Usage |
||||
|
============= |
||||
|
|
||||
|
Bootstrap Glyphicons are appended to the MediaDialog. |
||||
|
|
||||
|
Credits |
||||
|
======= |
||||
|
|
||||
|
Contributors |
||||
|
------------ |
||||
|
|
||||
|
* Mathias Markl <mathias.markl@mukit.at> |
||||
|
|
||||
|
Author & Maintainer |
||||
|
------------------- |
||||
|
|
||||
|
This module is maintained by the `MuK IT GmbH <https://www.mukit.at/>`_. |
||||
|
|
||||
|
MuK IT is an Austrian company specialized in customizing and extending Odoo. |
||||
|
We develop custom solutions for your individual needs to help you focus on |
||||
|
your strength and expertise to grow your business. |
||||
|
|
||||
|
If you want to get in touch please contact us via mail |
||||
|
(sale@mukit.at) or visit our website (https://mukit.at). |
@ -0,0 +1,27 @@ |
|||||
|
/********************************************************************************** |
||||
|
* |
||||
|
* Copyright (C) 2017 MuK IT GmbH |
||||
|
* |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU Affero General Public License as |
||||
|
* published by the Free Software Foundation, either version 3 of the |
||||
|
* License, or (at your option) any later version. |
||||
|
* |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU Affero General Public License for more details. |
||||
|
* |
||||
|
* You should have received a copy of the GNU Affero General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
* |
||||
|
**********************************************************************************/ |
||||
|
|
||||
|
odoo.define('muk_web_glyphicons.fonts', function (require) { |
||||
|
'use strict'; |
||||
|
|
||||
|
var editor_widgets = require('web_editor.widget'); |
||||
|
|
||||
|
editor_widgets.fontIcons.push({'base': 'glyphicon', 'parser': /(?=^|\s)(\.glyphicon-[0-9a-z_-]+::?before)/i}); |
||||
|
|
||||
|
}); |
@ -1,8 +1,34 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
|
||||
|
<!-- |
||||
|
Copyright (C) 2017 MuK IT GmbH |
||||
|
|
||||
|
This program is free software: you can redistribute it and/or modify |
||||
|
it under the terms of the GNU Affero General Public License as |
||||
|
published by the Free Software Foundation, either version 3 of the |
||||
|
License, or (at your option) any later version. |
||||
|
|
||||
|
This program is distributed in the hope that it will be useful, |
||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
GNU Affero General Public License for more details. |
||||
|
|
||||
|
You should have received a copy of the GNU Affero General Public License |
||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
--> |
||||
|
|
||||
<odoo> |
<odoo> |
||||
<template id="assets_backend" name="muk_web_glyphicons_assets" inherit_id="web.assets_backend"> |
|
||||
<xpath expr="." position="inside"> |
|
||||
|
|
||||
|
<template id="assets_common" name="muk_web_fontawesomepro_assets" inherit_id="web.assets_common"> |
||||
|
<xpath expr="//link[last()]" position="after"> |
||||
<link rel="stylesheet" href="/muk_web_glyphicons/static/src/less/glyphicons.less" /> |
<link rel="stylesheet" href="/muk_web_glyphicons/static/src/less/glyphicons.less" /> |
||||
</xpath> |
</xpath> |
||||
</template> |
</template> |
||||
|
|
||||
|
<template id="assets_editor" name="Editor Assets" inherit_id="web_editor.assets_editor"> |
||||
|
<xpath expr="//script[last()]" position="after"> |
||||
|
<script type="text/javascript" src="/muk_web_glyphicons/static/src/js/glyphicons.js"/> |
||||
|
</xpath> |
||||
|
</template> |
||||
|
|
||||
</odoo> |
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue