Skip to content

Commit eed8e09

Browse files
committed
[18.0][MIG] base_import_match: Migration to 18.0
1 parent 31e03b9 commit eed8e09

File tree

6 files changed

+17
-16
lines changed

6 files changed

+17
-16
lines changed

base_import_match/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Base Import Match
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/17.0/base_import_match
20+
:target: https://github.com/OCA/server-backend/tree/18.0/base_import_match
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-17-0/server-backend-17-0-base_import_match
23+
:target: https://translation.odoo-community.org/projects/server-backend-18-0/server-backend-18-0-base_import_match
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=17.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|
@@ -126,7 +126,7 @@ Bug Tracker
126126
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-backend/issues>`_.
127127
In case of trouble, please check there if your issue has already been reported.
128128
If you spotted it first, help us to smash it by providing a detailed and welcomed
129-
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20base_import_match%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
129+
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20base_import_match%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
130130

131131
Do not contact contributors directly about support or help with technical issues.
132132

@@ -160,6 +160,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
160160
mission is to support the collaborative development of Odoo features and
161161
promote its widespread use.
162162

163-
This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/17.0/base_import_match>`_ project on GitHub.
163+
This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/18.0/base_import_match>`_ project on GitHub.
164164

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

base_import_match/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Base Import Match",
66
"summary": "Try to avoid duplicates before importing",
7-
"version": "17.0.1.0.0",
7+
"version": "18.0.1.0.0",
88
"category": "Tools",
99
"website": "https://github.com/OCA/server-backend",
1010
"author": "Tecnativa, " "Odoo Community Association (OCA)",

base_import_match/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">Base Import Match</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:e2cf90a886e2e861e54a6fdd338f136042bf39b0b5af8ed31ea994ac39f3cfa7
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-backend/tree/17.0/base_import_match"><img alt="OCA/server-backend" src="https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-backend-17-0/server-backend-17-0-base_import_match"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-backend&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-backend/tree/18.0/base_import_match"><img alt="OCA/server-backend" src="https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-backend-18-0/server-backend-18-0-base_import_match"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-backend&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>By default, when importing data (like CSV import) with the
374374
<tt class="docutils literal">base_import</tt> module, Odoo follows this rule:</p>
375375
<ul class="simple">
@@ -478,7 +478,7 @@ <h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
478478
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-backend/issues">GitHub Issues</a>.
479479
In case of trouble, please check there if your issue has already been reported.
480480
If you spotted it first, help us to smash it by providing a detailed and welcomed
481-
<a class="reference external" href="https://github.com/OCA/server-backend/issues/new?body=module:%20base_import_match%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
481+
<a class="reference external" href="https://github.com/OCA/server-backend/issues/new?body=module:%20base_import_match%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
482482
<p>Do not contact contributors directly about support or help with technical issues.</p>
483483
</div>
484484
<div class="section" id="credits">
@@ -509,7 +509,7 @@ <h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
509509
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
510510
mission is to support the collaborative development of Odoo features and
511511
promote its widespread use.</p>
512-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-backend/tree/17.0/base_import_match">OCA/server-backend</a> project on GitHub.</p>
512+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-backend/tree/18.0/base_import_match">OCA/server-backend</a> project on GitHub.</p>
513513
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
514514
</div>
515515
</div>

base_import_match/tests/test_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _base_import_record(self, res_model, file_name):
2222
{
2323
"res_model": res_model,
2424
"file": demo_file.read(),
25-
"file_name": "%s.csv" % file_name,
25+
"file_name": f"{file_name}.csv",
2626
"file_type": "csv",
2727
}
2828
)

base_import_match/views/base_import_match_view.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<group>
1616
<field name="model_id" />
1717
<field name="field_ids">
18-
<tree editable="bottom">
18+
<list editable="bottom">
1919
<field name="field_id" options="{'no_create': True}" />
2020
<field
2121
name="match_id"
@@ -28,7 +28,7 @@
2828
name="imported_value"
2929
readonly="not conditional"
3030
/>
31-
</tree>
31+
</list>
3232
</field>
3333
<field name="sequence" />
3434
</group>
@@ -37,13 +37,13 @@
3737
</field>
3838
</record>
3939
<record id="match_tree_view" model="ir.ui.view">
40-
<field name="name">Import match tree view</field>
40+
<field name="name">Import match list view</field>
4141
<field name="model">base_import.match</field>
4242
<field name="arch" type="xml">
43-
<tree>
43+
<list>
4444
<field name="name" />
4545
<field name="sequence" column_invisible="True" />
46-
</tree>
46+
</list>
4747
</field>
4848
</record>
4949
<record id="match_search_view" model="ir.ui.view">
@@ -70,7 +70,7 @@
7070
<field name="type">ir.actions.act_window</field>
7171
<field name="name">Import Match</field>
7272
<field name="res_model">base_import.match</field>
73-
<field name="view_mode">tree,form</field>
73+
<field name="view_mode">list,form</field>
7474
</record>
7575

7676
<menuitem id="match_menu" action="match_action" parent="base.next_id_9" />

checklog-odoo.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[checklog-odoo]
22
ignore=
33
WARNING.* 0 failed, 0 error\(s\).*
4+
WARNING.*Found multiple matches for model res.partner and domain \[\('name', '=', 'Floyd Steward')]; falling back to default behavior \(create new record\)

0 commit comments

Comments
 (0)