diff --git a/__unported__/web_m2x_options/__openerp__.py b/__unported__/web_m2x_options/__openerp__.py
deleted file mode 100644
index e6e7eb3b..00000000
--- a/__unported__/web_m2x_options/__openerp__.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# -*- coding: utf-8 -*-
-
-{
- "name": 'web_m2x_options',
- "version": "0.1",
- "description":
-"""
-=====================================================
-Add new options for many2one and many2manytags field:
-=====================================================
-
-- create: true/false -> disable "create" entry in dropdown panel
-- create_edit: true/false -> disable "create and edit" entry in dropdown panel
-- limit: 10 (int) -> change number of selected record return in dropdown panel
-- m2o_dialog: true/false -> disable quick create M20Dialog triggered on error.
-
-Example:
---------
-
-
-
-Note:
------
-
-if one of those options are not set, many2one field use default many2one field options.
-
-Thanks to:
-----------
-
-- Nicolas JEUDY
-- Valentin LAB
-
-""",
- "depends": [
- 'base',
- 'web',
- ],
- "js": [
- 'static/src/js/form.js',
- ],
- "author": "Tuxservices",
- 'installable' : False,
- "active" : False,
-}
-
-
diff --git a/__unported__/web_m2x_options/README.rst b/web_m2x_options/README.rst
similarity index 54%
rename from __unported__/web_m2x_options/README.rst
rename to web_m2x_options/README.rst
index 2b1fafdb..e3681641 100644
--- a/__unported__/web_m2x_options/README.rst
+++ b/web_m2x_options/README.rst
@@ -6,10 +6,12 @@ Add new options for many2one field
Description
-----------
-This modules modifies "many2one" form fields so as to add some new display
+This modules modifies "many2one" and "many2manytags" form widgets so as to add some new display
control options.
-** New: support many2manytags widget ! **
+**New: support many2manytags widget !**
+
+**New: support global option management with ir.config_parameter !**
Options provided includes possibility to remove "Create..." and/or "Create and
Edit..." entries from many2one drop down. You can also change default number of
@@ -23,11 +25,11 @@ if the current user have no permission rights to create the related object.
Requirements
------------
-Was tested on openerp v7.0
+Was tested on openerp 8.0, trunk, saas-5 branch. New way to import js file. (thanks to tfossoul)
-New option
-----------
+New options
+-----------
``create`` *boolean* (Default: depends if user have create rights)
@@ -45,6 +47,30 @@ New option
Number of displayed record in drop-down panel
+ir.config_parameter options
+---------------------------
+
+Now you can disable "Create..." and "Create and Edit..." entry for all widgets in the odoo instance.
+If you disable one option, you can enable it for particular field by setting "create: True" option directly on the field definition.
+
+``web_m2x_options.create`` *boolean* (Default: depends if user have create rights)
+
+ Whether to display the "Create..." entry in dropdown panel for all fields in the odoo instance.
+
+``web_m2x_options.create_edit`` *boolean* (Default: depends if user have create rights)
+
+ Whether to display "Create and Edit..." entry in dropdown panel for all fields in the odoo instance.
+
+``web_m2x_options.limit`` *int* (Default: openerp default value is ``7``)
+
+ Number of displayed record in drop-down panel for all fields in the odoo instance
+
+To add these parameters go to Configuration -> Technical -> Parameters -> System Parameters and add new parameters like:
+
+- web_m2x_options.create: False
+- web_m2x_options.create_edit: False
+- web_m2x_options.limit: 10
+
Example
-------
diff --git a/__unported__/web_m2x_options/__init__.py b/web_m2x_options/__init__.py
similarity index 100%
rename from __unported__/web_m2x_options/__init__.py
rename to web_m2x_options/__init__.py
diff --git a/web_m2x_options/__openerp__.py b/web_m2x_options/__openerp__.py
new file mode 100644
index 00000000..a66e3530
--- /dev/null
+++ b/web_m2x_options/__openerp__.py
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+
+{
+ "name": 'web_m2x_options',
+ "version": "0.1",
+ "depends": [
+ 'base',
+ 'web',
+ ],
+ 'data': ['views/view.xml'],
+ "author": "0k.io",
+ "installable": True,
+ "active": False,
+}
diff --git a/__unported__/web_m2x_options/static/description/index.html b/web_m2x_options/static/description/index.html
similarity index 83%
rename from __unported__/web_m2x_options/static/description/index.html
rename to web_m2x_options/static/description/index.html
index 30abedb7..bf406ab1 100644
--- a/__unported__/web_m2x_options/static/description/index.html
+++ b/web_m2x_options/static/description/index.html
@@ -3,7 +3,7 @@
-
+
Add new options for many2one field