Browse Source

short headers, bump up version number

pull/1113/head
Alexandre Fayolle 9 years ago
committed by Pedro M. Baeza
parent
commit
ff4d9d225e
  1. 6
      web_widget_color/README.rst
  2. 25
      web_widget_color/__init__.py
  3. 25
      web_widget_color/__openerp__.py
  4. 4
      web_widget_color/static/src/js/widget.js
  5. 20
      web_widget_color/view/web_widget_color_view.xml

6
web_widget_color/README.rst

@ -27,12 +27,6 @@ Features
|listview|
Requirements
============
This module has been ported to 8.0
Usage
=====

25
web_widget_color/__init__.py

@ -1,25 +1,2 @@
# -*- encoding: utf-8 -*-
############################################################################
# -*- coding: utf-8 -*-
#
# Odoo, Open Source Web Color
# Copyright (C) 2012 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# Copyright (C) 2014 Anybox <http://anybox.fr>
# Copyright (C) 2015 Taktik SA <http://taktik.be>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# @author Étienne Beaudry Auger <etienne.b.auger@savoirfairelinux.com>
# @author Adil Houmadi <ah@taktik.be>
#
##############################################################################

25
web_widget_color/__openerp__.py

@ -1,32 +1,14 @@
# -*- encoding: utf-8 -*-
############################################################################
#
# -*- coding: utf-8 -*-
# Odoo, Open Source Web Widget Color
# Copyright (C) 2012 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# Copyright (C) 2014 Anybox <http://anybox.fr>
# Copyright (C) 2015 Taktik SA <http://taktik.be>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# @author Étienne Beaudry Auger <etienne.b.auger@savoirfairelinux.com>
# @author Adil Houmadi <ah@taktik.be>
#
##############################################################################
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).#
{
'name': "Web Widget Color",
'category': "web",
'version': "8.0.1.0.0",
'version': "9.0.1.0.0",
"author": "Savoir-faire Linux, "
"Anybox, "
"Taktik SA, "
@ -39,6 +21,7 @@
'qweb': [
'static/src/xml/widget.xml',
],
'license': 'AGPL-3',
'auto_install': False,
'installable': True,
'web_preload': True,

4
web_widget_color/static/src/js/widget.js

@ -57,11 +57,11 @@ odoo.define('web.web_widget_color', function(require) {
if (!this.get("effective_readonly")) {
var $input = this.$el.find('input');
$input.val(show_value);
$input.css("background-color", show_value)
$input.css("background-color", show_value);
jscolor.init(this.$el[0]);
} else {
this.$(".oe_form_char_content").text(show_value);
this.$('div').css("background-color", show_value)
this.$('div').css("background-color", show_value);
}
}
});

20
web_widget_color/view/web_widget_color_view.xml

@ -1,12 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<template id="assets_backend" name="web_widget_color assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/web_widget_color/static/src/css/widget.css"/>
<script type="text/javascript" src="/web_widget_color/static/lib/jscolor/jscolor.js"></script>
<script type="text/javascript" src="/web_widget_color/static/src/js/widget.js"></script>
</xpath>
</template>
</data>
</openerp>
<odoo>
<template id="assets_backend" name="web_widget_color assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/web_widget_color/static/src/css/widget.css"/>
<script type="text/javascript" src="/web_widget_color/static/lib/jscolor/jscolor.js"></script>
<script type="text/javascript" src="/web_widget_color/static/src/js/widget.js"></script>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save