From 83065124827298e2aff8188fc7480d166573433c Mon Sep 17 00:00:00 2001 From: Sylvain Calador Date: Thu, 30 Apr 2015 11:46:36 +0200 Subject: [PATCH] [REF] Rename the module according to the OCA naming convention --- .../views/web_m2m_tags_multiple_selection.xml | 10 ------ .../README.rst | 33 +++++++++++++++++++ .../__init__.py | 0 .../__openerp__.py | 4 +-- .../static/src/js/view_form.js | 4 +-- ..._widget_many2many_tags_multi_selection.xml | 10 ++++++ 6 files changed, 47 insertions(+), 14 deletions(-) delete mode 100644 web_m2m_tags_multiple_selection/views/web_m2m_tags_multiple_selection.xml create mode 100644 web_widget_many2many_tags_multi_selection/README.rst rename {web_m2m_tags_multiple_selection => web_widget_many2many_tags_multi_selection}/__init__.py (100%) rename {web_m2m_tags_multiple_selection => web_widget_many2many_tags_multi_selection}/__openerp__.py (91%) rename {web_m2m_tags_multiple_selection => web_widget_many2many_tags_multi_selection}/static/src/js/view_form.js (90%) create mode 100644 web_widget_many2many_tags_multi_selection/views/web_widget_many2many_tags_multi_selection.xml diff --git a/web_m2m_tags_multiple_selection/views/web_m2m_tags_multiple_selection.xml b/web_m2m_tags_multiple_selection/views/web_m2m_tags_multiple_selection.xml deleted file mode 100644 index bc2cabf70..000000000 --- a/web_m2m_tags_multiple_selection/views/web_m2m_tags_multiple_selection.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - diff --git a/web_widget_many2many_tags_multi_selection/README.rst b/web_widget_many2many_tags_multi_selection/README.rst new file mode 100644 index 000000000..697d7a408 --- /dev/null +++ b/web_widget_many2many_tags_multi_selection/README.rst @@ -0,0 +1,33 @@ +Allows multiple selection on many2many_tags widget +================================================== + +This module allows the user to select multiple entries through the search box in the case of the "many2many_tags" widget. + +Installation +============ + +It was tested on Odoo 8.0 branch. + +Credits +======= + +Akretion + +Contributors +------------ + +* Sylvain Calador + +Maintainer +---------- + +.. image:: http://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: http://odoo-community.org + +This module is maintained by the OCA. + +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 http://odoo-community.org. + diff --git a/web_m2m_tags_multiple_selection/__init__.py b/web_widget_many2many_tags_multi_selection/__init__.py similarity index 100% rename from web_m2m_tags_multiple_selection/__init__.py rename to web_widget_many2many_tags_multi_selection/__init__.py diff --git a/web_m2m_tags_multiple_selection/__openerp__.py b/web_widget_many2many_tags_multi_selection/__openerp__.py similarity index 91% rename from web_m2m_tags_multiple_selection/__openerp__.py rename to web_widget_many2many_tags_multi_selection/__openerp__.py index 6c5e3b639..b07382c37 100644 --- a/web_m2m_tags_multiple_selection/__openerp__.py +++ b/web_widget_many2many_tags_multi_selection/__openerp__.py @@ -20,7 +20,7 @@ ############################################################################## { - 'name': 'Web many2many_tags multiple selection', + 'name': 'web_widget_many2many_tags_multi_selection', 'version': '0.1', 'author': 'Akretion, Odoo Community Association (OCA)', 'depends': [ @@ -29,7 +29,7 @@ 'demo': [], 'website': 'https://www.akretion.com', 'data': [ - 'views/web_m2m_tags_multiple_selection.xml', + 'views/web_widget_many2many_tags_multi_selection.xml', ], 'installable': True, 'auto_install': False, diff --git a/web_m2m_tags_multiple_selection/static/src/js/view_form.js b/web_widget_many2many_tags_multi_selection/static/src/js/view_form.js similarity index 90% rename from web_m2m_tags_multiple_selection/static/src/js/view_form.js rename to web_widget_many2many_tags_multi_selection/static/src/js/view_form.js index fcd6b8ab4..1d073fe6b 100644 --- a/web_m2m_tags_multiple_selection/static/src/js/view_form.js +++ b/web_widget_many2many_tags_multi_selection/static/src/js/view_form.js @@ -1,4 +1,4 @@ -openerp.web_m2m_tags_multiple_selection = function(instance, local) { +openerp.web_widget_many2many_tags_multi_selection = function(instance, local) { var _t = instance.web._t; @@ -8,7 +8,7 @@ openerp.web_m2m_tags_multiple_selection = function(instance, local) { var domain = self.build_domain(); if (self.field.type == 'many2many') { - var selected_ids =self.get_search_blacklist(); + var selected_ids = self.get_search_blacklist(); if (selected_ids.length > 0) { domain = new instance.web.CompoundDomain(domain, ["!", ["id", "in", selected_ids]]); } diff --git a/web_widget_many2many_tags_multi_selection/views/web_widget_many2many_tags_multi_selection.xml b/web_widget_many2many_tags_multi_selection/views/web_widget_many2many_tags_multi_selection.xml new file mode 100644 index 000000000..0b4757483 --- /dev/null +++ b/web_widget_many2many_tags_multi_selection/views/web_widget_many2many_tags_multi_selection.xml @@ -0,0 +1,10 @@ + + + + + +