Skip to content

Commit 8d2cd88

Browse files
[IMP] server_action_navigate: pre-commit auto fixes
1 parent d345d1a commit 8d2cd88

File tree

10 files changed

+81
-83
lines changed

10 files changed

+81
-83
lines changed

server_action_navigate/README.rst

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,24 @@ Server Actions - Navigate
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github
20-
:target: https://github.com/OCA/server-backend/tree/16.0/server_action_navigate
20+
:target: https://github.com/OCA/server-backend/tree/18.0/server_action_navigate
2121
:alt: OCA/server-backend
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-server_action_navigate
23+
:target: https://translation.odoo-community.org/projects/server-backend-18-0/server-backend-18-0-server_action_navigate
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
This module provides a generic tool to have the possibility to see a list of
32-
records associated to a given selection of records. This is basically the UI version of ``recordset.mapped('field1.field2')``.
31+
This module provides a generic tool to have the possibility to see a
32+
list of records associated to a given selection of records. This is
33+
basically the UI version of ``recordset.mapped('field1.field2')``.
3334

34-
For example, if you use the sale module, you can configure an action to see
35-
all the products that have been sold for a given selection of sale orders.
35+
For example, if you use the sale module, you can configure an action to
36+
see all the products that have been sold for a given selection of sale
37+
orders.
3638

3739
**Table of contents**
3840

@@ -42,73 +44,71 @@ all the products that have been sold for a given selection of sale orders.
4244
Configuration
4345
=============
4446

45-
* Go to 'Setting / Technical / Actions / Server Actions'
47+
- Go to 'Setting / Technical / Actions / Server Actions'
48+
- Create a new item
4649

47-
* Create a new item
48-
49-
.. figure:: https://raw.githubusercontent.com/OCA/server-backend/16.0/server_action_navigate/static/description/ir_actions_server_form.png
50-
51-
* Set a name that will be used for the Contextual Action
52-
53-
* Choose a model
54-
55-
* Select 'Navigate' option in the field 'Action To Do'
56-
57-
* Then, select a field of this model. It can be a ``one2many``, ``many2many``,
58-
``many2one`` field.
59-
60-
* You can then optionally select another fields (#2) that belong to the previous
61-
selected field (#1) relation model
62-
63-
* Once done, click on the 'Create Contextual Action' to generate a new 'More options'
64-
button.
50+
|image1|
6551

52+
- Set a name that will be used for the Contextual Action
53+
- Choose a model
54+
- Select 'Navigate' option in the field 'Action To Do'
55+
- Then, select a field of this model. It can be a ``one2many``,
56+
``many2many``, ``many2one`` field.
57+
- You can then optionally select another fields (#2) that belong to the
58+
previous selected field (#1) relation model
59+
- Once done, click on the 'Create Contextual Action' to generate a new
60+
'More options' button.
6661

6762
**Extra options**
6863

69-
* You can define groups whose members will have access to that option.
64+
- You can define groups whose members will have access to that option.
65+
- You can select an action that will be used to display the target field
66+
list.
7067

71-
* You can select an action that will be used to display the target field list.
68+
.. |image1| image:: https://raw.githubusercontent.com/OCA/server-backend/18.0/server_action_navigate/static/description/ir_actions_server_form.png
7269

7370
Usage
7471
=====
7572

76-
* Go to a tree view, for a model for which you have defined a navigation action.
73+
- Go to a tree view, for a model for which you have defined a navigation
74+
action.
75+
- click on 'Action' Button
7776

78-
* click on 'Action' Button
77+
|image1|
7978

80-
.. figure:: https://raw.githubusercontent.com/OCA/server-backend/16.0/server_action_navigate/static/description/res_users_tree.png
79+
- then click on the name of the configured Action and see the results
8180

82-
* then click on the name of the configured Action and see the results
81+
|image2|
8382

84-
.. figure:: https://raw.githubusercontent.com/OCA/server-backend/16.0/server_action_navigate/static/description/res_partner_category_tree.png
83+
.. |image1| image:: https://raw.githubusercontent.com/OCA/server-backend/18.0/server_action_navigate/static/description/res_users_tree.png
84+
.. |image2| image:: https://raw.githubusercontent.com/OCA/server-backend/18.0/server_action_navigate/static/description/res_partner_category_tree.png
8585

8686
Bug Tracker
8787
===========
8888

8989
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-backend/issues>`_.
9090
In case of trouble, please check there if your issue has already been reported.
9191
If you spotted it first, help us to smash it by providing a detailed and welcomed
92-
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20server_action_navigate%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
92+
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20server_action_navigate%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
9393

9494
Do not contact contributors directly about support or help with technical issues.
9595

9696
Credits
9797
=======
9898

9999
Authors
100-
~~~~~~~
100+
-------
101101

102102
* GRAP
103103

104104
Contributors
105-
~~~~~~~~~~~~
105+
------------
106106

107-
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
108-
* Ashish Hirpara (https://ashish-hirpara.com)
107+
- Sylvain LE GAL (https://www.twitter.com/legalsylvain)
108+
- Ashish Hirpara (https://ashish-hirpara.com)
109109

110110
Maintainers
111-
~~~~~~~~~~~
111+
-----------
112112

113113
This module is maintained by the OCA.
114114

@@ -131,6 +131,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
131131

132132
|maintainer-legalsylvain| |maintainer-ashishhirpara|
133133

134-
This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/16.0/server_action_navigate>`_ project on GitHub.
134+
This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/18.0/server_action_navigate>`_ project on GitHub.
135135

136136
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

server_action_navigate/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
- Go to 'Setting / Technical / Actions / Server Actions'
2+
- Create a new item
3+
4+
![](../static/description/ir_actions_server_form.png)
5+
6+
- Set a name that will be used for the Contextual Action
7+
- Choose a model
8+
- Select 'Navigate' option in the field 'Action To Do'
9+
- Then, select a field of this model. It can be a `one2many`,
10+
`many2many`, `many2one` field.
11+
- You can then optionally select another fields (#2) that belong to the
12+
previous selected field (#1) relation model
13+
- Once done, click on the 'Create Contextual Action' to generate a new
14+
'More options' button.
15+
16+
**Extra options**
17+
18+
- You can define groups whose members will have access to that option.
19+
- You can select an action that will be used to display the target field
20+
list.

server_action_navigate/readme/CONFIGURE.rst

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Sylvain LE GAL (<https://www.twitter.com/legalsylvain>)
2+
- Ashish Hirpara (<https://ashish-hirpara.com>)

server_action_navigate/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This module provides a generic tool to have the possibility to see a
2+
list of records associated to a given selection of records. This is
3+
basically the UI version of `recordset.mapped('field1.field2')`.
4+
5+
For example, if you use the sale module, you can configure an action to
6+
see all the products that have been sold for a given selection of sale
7+
orders.

server_action_navigate/readme/DESCRIPTION.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- Go to a tree view, for a model for which you have defined a navigation
2+
action.
3+
- click on 'Action' Button
4+
5+
![](../static/description/res_users_tree.png)
6+
7+
- then click on the name of the configured Action and see the results
8+
9+
![](../static/description/res_partner_category_tree.png)

server_action_navigate/readme/USAGE.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)