forked from Techsystech/web
[REF] Rename the module according to the OCA naming convention
parent
e45a298012
commit
8306512482
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<openerp>
|
|
||||||
<data>
|
|
||||||
<template id="assets_backend" name="web_m2m_tags_multiple_selection" inherit_id="web.assets_backend">
|
|
||||||
<xpath expr="." position="inside">
|
|
||||||
<script type="text/javascript" src="/web_m2m_tags_multiple_selection/static/src/js/view_form.js"></script>
|
|
||||||
</xpath>
|
|
||||||
</template>
|
|
||||||
</data>
|
|
||||||
</openerp>
|
|
|
@ -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 <sylvain.calador@akretion.com>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Web many2many_tags multiple selection',
|
'name': 'web_widget_many2many_tags_multi_selection',
|
||||||
'version': '0.1',
|
'version': '0.1',
|
||||||
'author': 'Akretion, Odoo Community Association (OCA)',
|
'author': 'Akretion, Odoo Community Association (OCA)',
|
||||||
'depends': [
|
'depends': [
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
'demo': [],
|
'demo': [],
|
||||||
'website': 'https://www.akretion.com',
|
'website': 'https://www.akretion.com',
|
||||||
'data': [
|
'data': [
|
||||||
'views/web_m2m_tags_multiple_selection.xml',
|
'views/web_widget_many2many_tags_multi_selection.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
'auto_install': False,
|
'auto_install': False,
|
|
@ -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;
|
var _t = instance.web._t;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ openerp.web_m2m_tags_multiple_selection = function(instance, local) {
|
||||||
var domain = self.build_domain();
|
var domain = self.build_domain();
|
||||||
|
|
||||||
if (self.field.type == 'many2many') {
|
if (self.field.type == 'many2many') {
|
||||||
var selected_ids =self.get_search_blacklist();
|
var selected_ids = self.get_search_blacklist();
|
||||||
if (selected_ids.length > 0) {
|
if (selected_ids.length > 0) {
|
||||||
domain = new instance.web.CompoundDomain(domain, ["!", ["id", "in", selected_ids]]);
|
domain = new instance.web.CompoundDomain(domain, ["!", ["id", "in", selected_ids]]);
|
||||||
}
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
<template id="assets_backend" name="web_widget_many2many_tags_multi_selection" inherit_id="web.assets_backend">
|
||||||
|
<xpath expr="." position="inside">
|
||||||
|
<script type="text/javascript" src="/web_widget_many2many_tags_multi_selection/static/src/js/view_form.js"></script>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
</data>
|
||||||
|
</openerp>
|
Loading…
Reference in New Issue