Skip to content

Commit dfa6ff6

Browse files
committed
[MIG] attachment_category: Migration to 18.0
1 parent b52292b commit dfa6ff6

5 files changed

Lines changed: 21 additions & 22 deletions

File tree

attachment_category/README.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
==================
2-
Atachment Category
3-
==================
1+
===================
2+
Attachment Category
3+
===================
44

55
..
66
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -17,13 +17,13 @@ Atachment Category
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%2Fknowledge-lightgray.png?logo=github
20-
:target: https://github.com/OCA/knowledge/tree/17.0/attachment_category
20+
:target: https://github.com/OCA/knowledge/tree/18.0/attachment_category
2121
:alt: OCA/knowledge
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-attachment_category
23+
:target: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-attachment_category
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/knowledge&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -38,15 +38,15 @@ This module adds a document category to help classification.
3838
Usage
3939
=====
4040

41-
- Go to Attachments, and set categories as tags.
41+
- Go to Attachments, and set categories as tags.
4242

4343
Bug Tracker
4444
===========
4545

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

5151
Do not contact contributors directly about support or help with technical issues.
5252

@@ -61,7 +61,7 @@ Authors
6161
Contributors
6262
------------
6363

64-
- Denis Roussel <denis.roussel@acsone.eu>
64+
- Denis Roussel <denis.roussel@acsone.eu>
6565

6666
Maintainers
6767
-----------
@@ -76,6 +76,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
7676
mission is to support the collaborative development of Odoo features and
7777
promote its widespread use.
7878

79-
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/17.0/attachment_category>`_ project on GitHub.
79+
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/18.0/attachment_category>`_ project on GitHub.
8080

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

attachment_category/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
33

44
{
5-
"name": "Atachment Category",
5+
"name": "Attachment Category",
66
"summary": """
77
Adds a document category to help classification""",
8-
"version": "17.0.1.0.1",
8+
"version": "18.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
1111
"depends": ["base"],

attachment_category/models/ir_attachment_category.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class IrAttachmentCategory(models.Model):
2020
)
2121
parent_path = fields.Char(
2222
index=True,
23-
unaccent=False,
2423
)
2524
attachment_ids = fields.Many2many(
2625
compute="_compute_attachment_count", comodel_name="ir.attachment"

attachment_category/static/description/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>Atachment Category</title>
6+
<title>Attachment Category</title>
77
<style type="text/css">
88

99
/*
@@ -360,16 +360,16 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document" id="atachment-category">
364-
<h1 class="title">Atachment Category</h1>
363+
<div class="document" id="attachment-category">
364+
<h1 class="title">Attachment Category</h1>
365365

366366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:aa778118ab9c8ef7ecea85cab8a7ad3afd83be8b28a3985fa35ee5a8705fb4a3
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/knowledge/tree/17.0/attachment_category"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-attachment_category"><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/knowledge&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/knowledge/tree/18.0/attachment_category"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-attachment_category"><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/knowledge&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>This module adds a document category to help classification.</p>
374374
<p><strong>Table of contents</strong></p>
375375
<div class="contents local topic" id="contents">
@@ -395,7 +395,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
395395
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/knowledge/issues">GitHub Issues</a>.
396396
In case of trouble, please check there if your issue has already been reported.
397397
If you spotted it first, help us to smash it by providing a detailed and welcomed
398-
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20attachment_category%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
398+
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20attachment_category%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
399399
<p>Do not contact contributors directly about support or help with technical issues.</p>
400400
</div>
401401
<div class="section" id="credits">
@@ -421,7 +421,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
421421
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
422422
mission is to support the collaborative development of Odoo features and
423423
promote its widespread use.</p>
424-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/17.0/attachment_category">OCA/knowledge</a> project on GitHub.</p>
424+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/18.0/attachment_category">OCA/knowledge</a> project on GitHub.</p>
425425
<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>
426426
</div>
427427
</div>

attachment_category/views/ir_attachment_category.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
<field name="name">ir.attachment.category.tree (in document_category)</field>
4343
<field name="model">ir.attachment.category</field>
4444
<field name="arch" type="xml">
45-
<tree>
45+
<list>
4646
<field name="display_name" />
47-
</tree>
47+
</list>
4848
</field>
4949
</record>
5050
<record model="ir.actions.act_window" id="ir_attachment_category_act_window">
5151
<field name="name">Attachment Categories</field>
5252
<field name="res_model">ir.attachment.category</field>
53-
<field name="view_mode">tree,form</field>
53+
<field name="view_mode">list,form</field>
5454
<field name="help" type="html">
5555
<p class="o_view_nocontent_smiling_face">Create a new document</p>
5656
<p>Also you will find here all the related document categories.</p>

0 commit comments

Comments
 (0)