mirror of https://github.com/OCA/web.git
[REF] renaming 'web_custom_search_quantity' into 'web_listview_custom_element_number';
parent
7a75339881
commit
43e8262e85
|
@ -1,7 +1,7 @@
|
||||||
# -*- encoding: utf-8 -*-
|
# -*- 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)
|
# Copyright (C) 2015-Today Akretion (http://www.akretion.com)
|
||||||
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
# @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',
|
'version': '1.0',
|
||||||
'category': 'web',
|
'category': 'web',
|
||||||
'description': """
|
'description': """
|
||||||
|
@ -59,9 +59,9 @@ Copyright, Author and Licence:
|
||||||
'web',
|
'web',
|
||||||
],
|
],
|
||||||
'js': [
|
'js': [
|
||||||
'static/src/js/web_custom_search_quantity.js',
|
'static/src/js/web_listview_custom_element_number.js',
|
||||||
],
|
],
|
||||||
'css': [
|
'css': [
|
||||||
"static/src/css/web_custom_search_quantity.css",
|
'static/src/css/web_listview_custom_element_number.css',
|
||||||
],
|
],
|
||||||
}
|
}
|
|
@ -14,9 +14,9 @@ msgstr ""
|
||||||
"Content-Transfer-Encoding: \n"
|
"Content-Transfer-Encoding: \n"
|
||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
#. module: web_custom_search_quantity
|
#. module: web_listview_custom_element_number
|
||||||
#. openerp-web
|
#. 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
|
#, python-format
|
||||||
msgid "0 (Unlimited)"
|
msgid "0 (Unlimited)"
|
||||||
msgstr "0 (Illimité)"
|
msgstr "0 (Illimité)"
|
|
@ -14,9 +14,9 @@ msgstr ""
|
||||||
"Content-Transfer-Encoding: \n"
|
"Content-Transfer-Encoding: \n"
|
||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
#. module: web_custom_search_quantity
|
#. module: web_listview_custom_element_number
|
||||||
#. openerp-web
|
#. 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
|
#, python-format
|
||||||
msgid "0 (Unlimited)"
|
msgid "0 (Unlimited)"
|
||||||
msgstr ""
|
msgstr ""
|
|
@ -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)
|
Copyright (C) 2015-Today Akretion (http://www.akretion.com)
|
||||||
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||||
|
|
||||||
|
@ -17,6 +17,6 @@
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
.custom_search_quantity {
|
.custom_element_number {
|
||||||
width:50px;
|
width:50px;
|
||||||
}
|
}
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
@ -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)
|
Copyright (C) 2015-Today Akretion (http://www.akretion.com)
|
||||||
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
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;
|
module = instance.web;
|
||||||
_t = module._t;
|
_t = module._t;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ openerp.web_custom_search_quantity = function (instance) {
|
||||||
this.$pager.find('.oe_list_pager_state').click(function (e) {
|
this.$pager.find('.oe_list_pager_state').click(function (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
var $this = $(this);
|
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())
|
.appendTo($this.empty())
|
||||||
.click(function (e) {e.stopPropagation();})
|
.click(function (e) {e.stopPropagation();})
|
||||||
.append(
|
.append(
|
Loading…
Reference in New Issue