[ADD] server_action_sort : module to mass sort items (One2many) of any models, by any criterias

This commit is contained in:
Sylvain LE GAL
2023-12-23 21:05:01 +01:00
parent 81dfd93c8a
commit f57895af76
25 changed files with 1086 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
* Go to 'Setting / Technical / Actions / Server Actions'
* Create a new item
.. figure:: ../static/description/ir_actions_server_form.png
* Set a name that will be used for the Contextual Action
* choose a model
* Select 'Sort' option in the field 'Action To Do'
* Then, select a field to sort of this model. It should be a ``one2many`` field.
* Select then the criterias used to sort the selected field.
**Extra options**
* you can define groups whose members will have access to that option.

View File

@@ -0,0 +1 @@
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)

View File

@@ -0,0 +1,5 @@
This module provides a generic tools to have the possibility to sort the lines
of a list of items.
For exemple, if you use the sale module, you can want to reorder the sale
order lines, by any criterias.

View File

@@ -0,0 +1,3 @@
For instance, the module allow to order with many criterias, but
without "dot" notation : it is not possible to order sale order lines
by ``product_id.seller_ids.code`` for exemple.

View File

@@ -0,0 +1,18 @@
* Go to a tree view, for a model for which you have defined a 'Sort' action.
* Select some items you want to reorder.
* click on 'Action' Button
.. figure:: ../static/description/sale_order_tree.png
* then click on the name of the configured Action and see the results
**Before**
.. figure:: ../static/description/sale_order_form_before.png
**After**
.. figure:: ../static/description/sale_order_form_after.png