-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG]web_m2x_options: Migration to 17.0
- Loading branch information
1 parent
55c7df8
commit 5027c33
Showing
18 changed files
with
493 additions
and
714 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ web_m2x_options | |
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:3a852d89e5cd927339a18898b21556fc15d261782fca8783b728cdc6a8ffa574 | ||
!! source digest: sha256:0afece0246fa101b62c0522c1df2070cea624097713b5c6991fce8a2903dc1ef | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
|
@@ -32,9 +32,8 @@ This modules modifies "many2one" and "many2manytags" form widgets so as | |
to add some new display control options. | ||
|
||
Options provided includes possibility to remove "Create..." and/or | ||
"Create and Edit..." entries from many2one drop down. You can also | ||
change default number of proposition appearing in the drop-down. Or | ||
prevent the dialog box poping in case of validation error. | ||
"Create and Edit..." entries drop down. You can also change default | ||
number of proposition appearing in the drop-down. | ||
|
||
If not specified, the module will avoid proposing any of the create | ||
options if the current user has no permission rights to create the | ||
|
@@ -53,16 +52,13 @@ in the field's options dict | |
|
||
``create`` *boolean* (Default: depends if user have create rights) | ||
|
||
Whether to display the "Create..." entry in dropdown panel. | ||
Whether to display the "Create..." entry in dropdown panel. Only for | ||
m2o fields. | ||
|
||
``create_edit`` *boolean* (Default: depends if user have create rights) | ||
|
||
Whether to display "Create and Edit..." entry in dropdown panel | ||
|
||
``m2o_dialog`` *boolean* (Default: depends if user have create rights) | ||
|
||
Whether to display the many2one dialog in case of validation error. | ||
|
||
``limit`` *int* (Default: odoo default value is ``8``) | ||
|
||
Number of displayed record in drop-down panel | ||
|
@@ -81,21 +77,9 @@ in the field's options dict | |
A dictionary to link field value with a HTML color. This option has | ||
to be used with field_color. | ||
|
||
``no_open_edit`` *boolean* (Default: value of ``no_open`` which is | ||
``False`` if not set) | ||
|
||
Causes a many2one not to offer to click through in edit mode, but | ||
well in read mode | ||
|
||
``open`` *boolean* (Default: ``False``) | ||
|
||
Makes many2many_tags and one2many rows buttons that open the linked | ||
resource | ||
|
||
``no_color_picker`` *boolean* (Default: ``False``) | ||
|
||
Deactivates the color picker on many2many_tags buttons to do nothing | ||
(ignored if open is set) | ||
Makes many2one buttons that open the linked resource. | ||
|
||
ir.config_parameter options | ||
--------------------------- | ||
|
@@ -117,12 +101,6 @@ create rights) | |
Whether to display "Create and Edit..." entry in dropdown panel for | ||
all fields in the odoo instance. | ||
|
||
``web_m2x_options.m2o_dialog`` *boolean* (Default: depends if user have | ||
create rights) | ||
|
||
Whether to display the many2one dialog in case of validation error | ||
for all fields in the odoo instance. | ||
|
||
``web_m2x_options.limit`` *int* (Default: odoo default value is ``8``) | ||
|
||
Number of displayed record in drop-down panel for all fields in the | ||
|
@@ -142,7 +120,6 @@ To add these parameters go to Configuration -> Technical -> Parameters | |
|
||
- web_m2x_options.create: False | ||
- web_m2x_options.create_edit: False | ||
- web_m2x_options.m2o_dialog: False | ||
- web_m2x_options.limit: 10 | ||
- web_m2x_options.search_more: True | ||
- web_m2x_options.field_limit_entries: 5 | ||
|
@@ -155,7 +132,7 @@ Your XML form view definition could contain: | |
.. code:: xml | ||
... | ||
<field name="partner_id" options="{'limit': 10, 'create': false, 'create_edit': false, 'search_more': true, 'field_color':'state', 'colors':{'active':'green'}}"/> | ||
<field name="partner_id" options="{'limit': 10, 'create': false, 'create_edit': false, 'search_more': true, 'field_color':'type', 'colors':{'contact':'green', 'invoice': 'red', 'delivery': 'blue'}}"/> | ||
... | ||
Known issues / Roadmap | ||
|
@@ -170,10 +147,6 @@ verify your installation. | |
- Instead of making the tags rectangle clickable, I think it's better | ||
to put the text as a clickable link, so we will get a consistent | ||
behaviour/aspect with other clickable elements (many2one...). | ||
- In edit mode, it would be great to add an icon like the one on | ||
many2one fields to allow to open the many2many in a popup window. | ||
- Include this feature as a configurable option via parameter to have | ||
this behaviour by default in all many2many tags. | ||
|
||
Bug Tracker | ||
=========== | ||
|
@@ -226,6 +199,12 @@ Contributors | |
|
||
- Hoang Diep <[email protected]> | ||
|
||
- `Sygel <https://sygel.es>`__: | ||
|
||
- Manuel Regidor <[email protected]> | ||
- Valentín Vinagre <[email protected]> | ||
- Harald Panten <[email protected]> | ||
|
||
Other credits | ||
------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,8 @@ | |
|
||
- [Trobz](https://trobz.com): | ||
- Hoang Diep \<<[email protected]>\> | ||
|
||
- [Sygel](https://sygel.es): | ||
- Manuel Regidor \<<[email protected]>\> | ||
- Valentín Vinagre \<<[email protected]>\> | ||
- Harald Panten \<<[email protected]>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.