Browse Source

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

pull/150/head
Sylvain LE GAL 9 years ago
parent
commit
43e8262e85
  1. 0
      web_listview_custom_element_number/__init__.py
  2. 8
      web_listview_custom_element_number/__openerp__.py
  3. 4
      web_listview_custom_element_number/i18n/fr.po
  4. 4
      web_listview_custom_element_number/i18n/web_listview_custom_element_number.pot
  5. 6
      web_listview_custom_element_number/static/src/css/web_listview_custom_element_number.css
  6. 0
      web_listview_custom_element_number/static/src/img/icon.png
  7. 6
      web_listview_custom_element_number/static/src/js/web_listview_custom_element_number.js

0
web_custom_search_quantity/__init__.py → web_listview_custom_element_number/__init__.py

8
web_custom_search_quantity/__openerp__.py → web_listview_custom_element_number/__openerp__.py

@ -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',
],
}

4
web_custom_search_quantity/i18n/fr.po → web_listview_custom_element_number/i18n/fr.po

@ -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é)"

4
web_custom_search_quantity/i18n/web_custom_search_quantity.pot → web_listview_custom_element_number/i18n/web_listview_custom_element_number.pot

@ -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 ""

6
web_custom_search_quantity/static/src/css/web_custom_search_quantity.css → web_listview_custom_element_number/static/src/css/web_listview_custom_element_number.css

@ -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;
}
}

0
web_custom_search_quantity/static/src/img/icon.png → web_listview_custom_element_number/static/src/img/icon.png

Before

Width: 128  |  Height: 128  |  Size: 3.3 KiB

After

Width: 128  |  Height: 128  |  Size: 3.3 KiB

6
web_custom_search_quantity/static/src/js/web_custom_search_quantity.js → web_listview_custom_element_number/static/src/js/web_listview_custom_element_number.js

@ -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(
Loading…
Cancel
Save