From 808599e686c2e3d1958001f3696b3711fa5bbff0 Mon Sep 17 00:00:00 2001 From: Cesar Lage Date: Wed, 4 May 2016 04:32:11 -0400 Subject: [PATCH] [FIX] some updates after first revision --- web_widget_radio_tree/README.rst | 6 ++--- web_widget_radio_tree/__init__.py | 21 ++------------- web_widget_radio_tree/__openerp__.py | 27 +++---------------- web_widget_radio_tree/static/src/js/widget.js | 2 +- 4 files changed, 10 insertions(+), 46 deletions(-) diff --git a/web_widget_radio_tree/README.rst b/web_widget_radio_tree/README.rst index 351eec98c..4586a7fd8 100644 --- a/web_widget_radio_tree/README.rst +++ b/web_widget_radio_tree/README.rst @@ -42,8 +42,8 @@ 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 `_. +web_widget_radio_tree%0Aversion:%20 +8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Credits ======= @@ -67,4 +67,4 @@ 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. -To contribute to this module, please visit https://odoo-community.org. \ No newline at end of file +To contribute to this module, please visit https://odoo-community.org. diff --git a/web_widget_radio_tree/__init__.py b/web_widget_radio_tree/__init__.py index add09d830..de1a96ac5 100644 --- a/web_widget_radio_tree/__init__.py +++ b/web_widget_radio_tree/__init__.py @@ -1,20 +1,3 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Odoo, an open source suite of business apps -# This module copyright (C) 2015 bloopark systems (). -# -# 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 . -# -############################################################################## +# © 2016 Cesar Lage (bloopark systems GmbH) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/web_widget_radio_tree/__openerp__.py b/web_widget_radio_tree/__openerp__.py index c2c0ae360..e5f040d46 100644 --- a/web_widget_radio_tree/__openerp__.py +++ b/web_widget_radio_tree/__openerp__.py @@ -1,26 +1,9 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# Odoo, an open source suite of business apps -# This module copyright (C) 2015 bloopark systems (). -# -# 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 . -# -############################################################################## +# © 2016 Cesar Lage (bloopark systems GmbH) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': "Web Widget Radio Tree", - 'summary': """Add radio buttons for records in tree.""", + 'summary': "Add radio buttons for records in tree.", 'author': "bloopark systems GmbH & Co. KG", 'website': "http://www.bloopark.de", 'category': 'web', @@ -33,7 +16,5 @@ ], 'qweb': [ 'static/src/xml/widget.xml', - ], - 'installable': True, - 'auto_install': False, + ] } diff --git a/web_widget_radio_tree/static/src/js/widget.js b/web_widget_radio_tree/static/src/js/widget.js index fbb8b0d43..db32861d1 100644 --- a/web_widget_radio_tree/static/src/js/widget.js +++ b/web_widget_radio_tree/static/src/js/widget.js @@ -35,7 +35,7 @@ openerp.web_widget_radio_tree = function (instance) { }; this.on('change:effective_readonly', this, check_readonly); check_readonly.call(this); - this._super.apply(this, arguments); + return this._super.apply(this, arguments); }, click_disabled_boolean: function(){ var $disabled = this.$el.find('input[type=radio]:disabled');