Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2ff3ea0

Browse files
authoredMar 18, 2025··
Merge pull request #1 from adhoc-dev/18.0-h-mig-base_export_manager-rov
[FIX] Fix constraint check to handle NewId for export_id correctly
2 parents 8c3077a + 3b33294 commit 2ff3ea0

File tree

3 files changed

+48
-45
lines changed

3 files changed

+48
-45
lines changed
 

‎base_export_manager/README.rst

+38-38
Original file line numberDiff line numberDiff line change
@@ -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,44 +56,44 @@ 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
76-
subfields.
77-
- You can drag & drop to reorder the fields.
75+
- If you choose a related field, you can choose also up to 4 levels
76+
of subfields.
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
===========
@@ -119,16 +119,16 @@ Authors
119119
Contributors
120120
------------
121121

122-
- Javier Iniesta <javieria@antiun.com>
123-
- Antonio Espinosa <antonio.espinosa@tecnativa.com>
124-
- Rafael Blasco <rafael.blasco@tecnativa.com>
125-
- Jairo Llopis <jairo.llopis@tecnativa.com>
126-
- Dave Lasley <dave@laslabs.com>
127-
- Sandip Mangukiya <smangukiya@ursainfosystems.com>
128-
- Maxime Chambreuil <mchambreuil@ursainfosystems.com>
129-
- Olivier Jossen <olivier.jossen@braintec-group.com>
130-
- Alexandre Díaz <alexandre.diaz@tecnativa.com>
131-
- Kevin Khao <kevin.khao@akretion.com>
122+
- Javier Iniesta <javieria@antiun.com>
123+
- Antonio Espinosa <antonio.espinosa@tecnativa.com>
124+
- Rafael Blasco <rafael.blasco@tecnativa.com>
125+
- Jairo Llopis <jairo.llopis@tecnativa.com>
126+
- Dave Lasley <dave@laslabs.com>
127+
- Sandip Mangukiya <smangukiya@ursainfosystems.com>
128+
- Maxime Chambreuil <mchambreuil@ursainfosystems.com>
129+
- Olivier Jossen <olivier.jossen@braintec-group.com>
130+
- Alexandre Díaz <alexandre.diaz@tecnativa.com>
131+
- Kevin Khao <kevin.khao@akretion.com>
132132

133133
Maintainers
134134
-----------

‎base_export_manager/models/ir_exports_line.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def _check_name(self):
160160
_("Field '%s' does not exist") % one.name
161161
)
162162
num_lines = 0
163-
if not isinstance({one.export_id.id}, models.NewId):
163+
if one.export_id and not isinstance(one.export_id.id, models.NewId):
164164
num_lines = one.search_count(
165165
[("export_id", "=", one.export_id.id), ("name", "=", one.name)]
166166
)

‎base_export_manager/static/description/index.html

+9-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
/*
1010
:Author: David Goodger (goodger@python.org)
11-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1212
:Copyright: This stylesheet has been placed in the public domain.
1313
1414
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1516
1617
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1718
customize this style sheet.
@@ -274,7 +275,7 @@
274275
margin-left: 2em ;
275276
margin-right: 2em }
276277

277-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
278279
pre.code, code { background-color: #eeeeee }
279280
pre.code .comment, code .comment { color: #5C6576 }
280281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
300301
span.pre {
301302
white-space: pre }
302303

303-
span.problematic {
304+
span.problematic, pre.problematic {
304305
color: red }
305306

306307
span.section-subtitle {
@@ -421,8 +422,8 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
421422
<li>Choose a name.</li>
422423
<li>Choose a model (table in the database).</li>
423424
<li>Choose the fields to export.<ul>
424-
<li>If you choose a related field, you can choose also up to 4 levels of
425-
subfields.</li>
425+
<li>If you choose a related field, you can choose also up to 4 levels
426+
of subfields.</li>
426427
<li>You can drag &amp; drop to reorder the fields.</li>
427428
</ul>
428429
</li>
@@ -485,7 +486,9 @@ <h2><a class="toc-backref" href="#toc-entry-7">Contributors</a></h2>
485486
<div class="section" id="maintainers">
486487
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
487488
<p>This module is maintained by the OCA.</p>
488-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
489+
<a class="reference external image-reference" href="https://odoo-community.org">
490+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
491+
</a>
489492
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
490493
mission is to support the collaborative development of Odoo features and
491494
promote its widespread use.</p>

0 commit comments

Comments
 (0)
Please sign in to comment.