[REF] renaming 'web_custom_search_quantity' into 'web_listview_custom_element_number';

pull/150/head
Sylvain LE GAL 2015-06-27 12:47:27 +02:00
parent 7a75339881
commit 43e8262e85
7 changed files with 14 additions and 14 deletions

View File

@ -1,7 +1,7 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Web - Custom Search Quantity module for Odoo
# Web - Custom Element Number in ListView module for Odoo
# Copyright (C) 2015-Today Akretion (http://www.akretion.com)
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
#
@ -21,7 +21,7 @@
##############################################################################
{
'name': 'Web - Custom Search Quantity',
'name': 'Web - Custom Element Number in ListView',
'version': '1.0',
'category': 'web',
'description': """
@ -59,9 +59,9 @@ Copyright, Author and Licence:
'web',
],
'js': [
'static/src/js/web_custom_search_quantity.js',
'static/src/js/web_listview_custom_element_number.js',
],
'css': [
"static/src/css/web_custom_search_quantity.css",
'static/src/css/web_listview_custom_element_number.css',
],
}

View File

@ -14,9 +14,9 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: web_custom_search_quantity
#. module: web_listview_custom_element_number
#. openerp-web
#: code:addons/web_custom_search_quantity/static/src/js/web_custom_search_quantity.js:56
#: code:addons/web_listview_custom_element_number/static/src/js/web_listview_custom_element_number.js:56
#, python-format
msgid "0 (Unlimited)"
msgstr "0 (Illimité)"

View File

@ -14,9 +14,9 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: web_custom_search_quantity
#. module: web_listview_custom_element_number
#. openerp-web
#: code:addons/web_custom_search_quantity/static/src/js/web_custom_search_quantity.js:56
#: code:addons/web_listview_custom_element_number/static/src/js/web_listview_custom_element_number.js:56
#, python-format
msgid "0 (Unlimited)"
msgstr ""

View File

@ -1,5 +1,5 @@
/******************************************************************************
Web - Custom Search Quantity module for Odoo
Web - Custom Element Number in ListView module for Odoo
Copyright (C) 2015-Today Akretion (http://www.akretion.com)
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
@ -17,6 +17,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
.custom_search_quantity {
.custom_element_number {
width:50px;
}

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -1,5 +1,5 @@
/******************************************************************************
Web - Custom Search Quantity module for Odoo
Web - Custom Element Number in ListView module for Odoo
Copyright (C) 2015-Today Akretion (http://www.akretion.com)
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
@ -17,7 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
openerp.web_custom_search_quantity = function (instance) {
openerp.web_listview_custom_element_number = function (instance) {
module = instance.web;
_t = module._t;
@ -42,7 +42,7 @@ openerp.web_custom_search_quantity = function (instance) {
this.$pager.find('.oe_list_pager_state').click(function (e) {
e.stopPropagation();
var $this = $(this);
var $select = $('<input list="page_value" class="custom_search_quantity" type="text" placeholder="' + (self._limit || '0') + '">')
var $select = $('<input list="page_value" class="custom_element_number" type="text" placeholder="' + (self._limit || '0') + '">')
.appendTo($this.empty())
.click(function (e) {e.stopPropagation();})
.append(