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 bc2cabf7..00000000 --- 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 00000000..697d7a40 --- /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 6c5e3b63..b07382c3 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 fcd6b8ab..1d073fe6 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 00000000..0b475748 --- /dev/null +++ b/web_widget_many2many_tags_multi_selection/views/web_widget_many2many_tags_multi_selection.xml @@ -0,0 +1,10 @@ + + + + + +