Skip to content

Commit e058a6c

Browse files
committed
[IMP] base_export_manager: pre-commit auto fixes
1 parent 37c401c commit e058a6c

File tree

15 files changed

+124
-125
lines changed

15 files changed

+124
-125
lines changed

base_export_manager/README.rst

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Manage model export profiles
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--ux-lightgray.png?logo=github
20-
:target: https://github.com/OCA/server-ux/tree/16.0/base_export_manager
20+
:target: https://github.com/OCA/server-ux/tree/18.0/base_export_manager
2121
:alt: OCA/server-ux
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_export_manager
23+
:target: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_export_manager
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-ux&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -32,9 +32,9 @@ This module extends the export capability:
3232

3333
1. It allows an admin to manage export profiles (``ir.exports``) that
3434
Odoo stores internally but does not show anywhere.
35-
2. It also adds a new column to access rights to enable/disable export and
36-
override the export method to check if the user is allowed to export. Export
37-
is enabled by default.
35+
2. It also adds a new column to access rights to enable/disable export
36+
and override the export method to check if the user is allowed to
37+
export. Export is enabled by default.
3838

3939
**Table of contents**
4040

@@ -44,10 +44,10 @@ This module extends the export capability:
4444
Configuration
4545
=============
4646

47-
* Activate the developer mode
48-
* Go to Settings > Users > Groups to select a user group
49-
* Edit the group and go to the Access Rights tab
50-
* Uncheck the "Export Access" box on the object of your choice and save
47+
- Activate the developer mode
48+
- Go to Settings > Users > Groups to select a user group
49+
- Edit the group and go to the Access Rights tab
50+
- Uncheck the "Export Access" box on the object of your choice and save
5151

5252
You can also go to Settings > Technical > Security > Access Rights.
5353

@@ -56,82 +56,82 @@ Usage
5656

5757
You can create the export profiles as you are used to:
5858

59-
* Go to any list view.
60-
* Check some records.
61-
* Click *Action > Export*.
62-
* Use the wizard to choose the columns to export.
63-
* Click on the *Template* dropdown and select *New template*
64-
* Give it a name.
65-
* Click on the floppy disk icon to save it.
59+
- Go to any list view.
60+
- Check some records.
61+
- Click *Action > Export*.
62+
- Use the wizard to choose the columns to export.
63+
- Click on the *Template* dropdown and select *New template*
64+
- Give it a name.
65+
- Click on the floppy disk icon to save it.
6666

6767
To manage export profiles, you need to:
6868

69-
* Go to *Settings > Technical > User Interface > Export Profiles*.
70-
* Create a new one.
71-
* Choose a name.
72-
* Choose a model (table in the database).
73-
* Choose the fields to export.
69+
- Go to *Settings > Technical > User Interface > Export Profiles*.
70+
- Create a new one.
71+
- Choose a name.
72+
- Choose a model (table in the database).
73+
- Choose the fields to export.
7474

75-
* If you choose a related field, you can choose also up to 4 levels of
75+
- If you choose a related field, you can choose also up to 4 levels of
7676
subfields.
77-
* You can drag & drop to reorder the fields.
77+
- You can drag & drop to reorder the fields.
7878

7979
To use one of those profiles, you need to:
8080

81-
* Go to any list view.
82-
* Check some records.
83-
* Click *Action > Export*.
84-
* Choose your saved export from *Saved exports*.
85-
* Press *Export to file*.
81+
- Go to any list view.
82+
- Check some records.
83+
- Click *Action > Export*.
84+
- Choose your saved export from *Saved exports*.
85+
- Press *Export to file*.
8686

8787
Once you have configured groups who cannot export an object:
8888

89-
* Connect as a user of this group
90-
* Go to the list view of the object you disabled the export
91-
* Select records and open the Action menu. The "Export" is not there.
89+
- Connect as a user of this group
90+
- Go to the list view of the object you disabled the export
91+
- Select records and open the Action menu. The "Export" is not there.
9292

9393
Known issues / Roadmap
9494
======================
9595

96-
* Translated labels are not used in final exported file.
96+
- Translated labels are not used in final exported file.
9797

9898
Bug Tracker
9999
===========
100100

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

106106
Do not contact contributors directly about support or help with technical issues.
107107

108108
Credits
109109
=======
110110

111111
Authors
112-
~~~~~~~
112+
-------
113113

114114
* Tecnativa
115115
* LasLabs
116116
* Ursa Information Systems
117117
* brain-tec AG
118118

119119
Contributors
120-
~~~~~~~~~~~~
121-
122-
* Javier Iniesta <[email protected]>
123-
* Antonio Espinosa <[email protected]>
124-
* Rafael Blasco <[email protected]>
125-
* Jairo Llopis <[email protected]>
126-
* Dave Lasley <[email protected]>
127-
* Sandip Mangukiya <[email protected]>
128-
* Maxime Chambreuil <[email protected]>
129-
* Olivier Jossen <[email protected]>
130-
* Alexandre Díaz <[email protected]>
131-
* Kevin Khao <[email protected]>
120+
------------
121+
122+
- Javier Iniesta <[email protected]>
123+
- Antonio Espinosa <[email protected]>
124+
- Rafael Blasco <[email protected]>
125+
- Jairo Llopis <[email protected]>
126+
- Dave Lasley <[email protected]>
127+
- Sandip Mangukiya <[email protected]>
128+
- Maxime Chambreuil <[email protected]>
129+
- Olivier Jossen <[email protected]>
130+
- Alexandre Díaz <[email protected]>
131+
- Kevin Khao <[email protected]>
132132

133133
Maintainers
134-
~~~~~~~~~~~
134+
-----------
135135

136136
This module is maintained by the OCA.
137137

@@ -143,6 +143,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
143143
mission is to support the collaborative development of Odoo features and
144144
promote its widespread use.
145145

146-
This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/16.0/base_export_manager>`_ project on GitHub.
146+
This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/18.0/base_export_manager>`_ project on GitHub.
147147

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

base_export_manager/models/ir_exports_line.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ def _inverse_name(self):
140140
# You could get to failing constraint while populating the
141141
# fields, so we skip the uniqueness check and manually check
142142
# the full constraint after the loop
143-
one.with_context(skip_check=True)[
144-
one.field_n(num, True)
145-
] = one._get_field_id(model, field_name)
143+
one.with_context(skip_check=True)[one.field_n(num, True)] = (
144+
one._get_field_id(model, field_name)
145+
)
146146
if any(parts):
147147
# invalidate_recordset -> in order to get actual value of field 'label'
148148
# in function '_check_name'

base_export_manager/models/ir_model_access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ class IrModelAccess(models.Model):
99
_inherit = "ir.model.access"
1010

1111
# WARN: This can't be used in 'check()'
12-
# See https://github.com/odoo/odoo/blob/0b6a2569920b6584652c39b3465998649fe305b4/odoo/addons/base/models/ir_model.py#L1496 # noqa: B950
12+
# See https://github.com/odoo/odoo/blob/0b6a2569920b6584652c39b3465998649fe305b4/odoo/addons/base/models/ir_model.py#L1496 # noqa: B950, E501
1313
perm_export = fields.Boolean("Export Access", default=True)

base_export_manager/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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- Activate the developer mode
2+
- Go to Settings \> Users \> Groups to select a user group
3+
- Edit the group and go to the Access Rights tab
4+
- Uncheck the "Export Access" box on the object of your choice and save
5+
6+
You can also go to Settings \> Technical \> Security \> Access Rights.

base_export_manager/readme/CONFIGURE.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- Javier Iniesta \<<[email protected]>\>
2+
- Antonio Espinosa \<<[email protected]>\>
3+
- Rafael Blasco \<<[email protected]>\>
4+
- Jairo Llopis \<<[email protected]>\>
5+
- Dave Lasley \<<[email protected]>\>
6+
- Sandip Mangukiya \<<[email protected]>\>
7+
- Maxime Chambreuil \<<[email protected]>\>
8+
- Olivier Jossen \<<[email protected]>\>
9+
- Alexandre Díaz \<<[email protected]>\>
10+
- Kevin Khao \<<[email protected]>\>

base_export_manager/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 10 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 extends the export capability:
2+
3+
1. It allows an admin to manage export profiles (`ir.exports`) that
4+
Odoo stores internally but does not show anywhere.
5+
2. It also adds a new column to access rights to enable/disable export
6+
and override the export method to check if the user is allowed to
7+
export. Export is enabled by default.

base_export_manager/readme/DESCRIPTION.rst

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

0 commit comments

Comments
 (0)