Browse Source

[FIX] some updates after first revision

pull/351/head
Cesar Lage 8 years ago
parent
commit
808599e686
  1. 6
      web_widget_radio_tree/README.rst
  2. 21
      web_widget_radio_tree/__init__.py
  3. 27
      web_widget_radio_tree/__openerp__.py
  4. 2
      web_widget_radio_tree/static/src/js/widget.js

6
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
<https://github.com/OCA/
web/issues/new?body=module:%20
web_qweb_diff%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
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.
To contribute to this module, please visit https://odoo-community.org.

21
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 (<http://bloopark.de>).
#
# 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/>.
#
##############################################################################
# © 2016 Cesar Lage (bloopark systems GmbH)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

27
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 (<http://bloopark.de>).
#
# 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/>.
#
##############################################################################
# © 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,
]
}

2
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');

Loading…
Cancel
Save