mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[ADD] server_action_sort : module to mass sort items (One2many) of any models, by any criterias
This commit is contained in:
20
server_action_sort/readme/CONFIGURE.rst
Normal file
20
server_action_sort/readme/CONFIGURE.rst
Normal 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.
|
||||
1
server_action_sort/readme/CONTRIBUTORS.rst
Normal file
1
server_action_sort/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1 @@
|
||||
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
|
||||
5
server_action_sort/readme/DESCRIPTION.rst
Normal file
5
server_action_sort/readme/DESCRIPTION.rst
Normal 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.
|
||||
3
server_action_sort/readme/ROADMAP.rst
Normal file
3
server_action_sort/readme/ROADMAP.rst
Normal 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.
|
||||
18
server_action_sort/readme/USAGE.rst
Normal file
18
server_action_sort/readme/USAGE.rst
Normal 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
|
||||
Reference in New Issue
Block a user