Skip to content

Commit

Permalink
[MIG] base_unece: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Tran committed Nov 15, 2024
1 parent dcf9877 commit 051864a
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 31 deletions.
19 changes: 10 additions & 9 deletions base_unece/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Base UNECE
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcommunity--data--files-lightgray.png?logo=github
:target: https://github.com/OCA/community-data-files/tree/17.0/base_unece
:target: https://github.com/OCA/community-data-files/tree/18.0/base_unece
:alt: OCA/community-data-files
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/community-data-files-17-0/community-data-files-17-0-base_unece
:target: https://translation.odoo-community.org/projects/community-data-files-18-0/community-data-files-18-0-base_unece
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/community-data-files&target_branch=17.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/community-data-files&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -54,7 +54,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/community-data-files/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/community-data-files/issues/new?body=module:%20base_unece%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/community-data-files/issues/new?body=module:%20base_unece%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand All @@ -69,10 +69,11 @@ Authors
Contributors
------------

- Alexis de Lattre <[email protected]>
- Levent Karakaş
- Pedro M. Baeza
- Andrea Stirpe
- Alexis de Lattre <[email protected]>
- Levent Karakaş
- Pedro M. Baeza
- Andrea Stirpe
- Nhan Tran <[email protected]>

Maintainers
-----------
Expand All @@ -98,6 +99,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-astirpe| |maintainer-alexis-via|

This module is part of the `OCA/community-data-files <https://github.com/OCA/community-data-files/tree/17.0/base_unece>`_ project on GitHub.
This module is part of the `OCA/community-data-files <https://github.com/OCA/community-data-files/tree/18.0/base_unece>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion base_unece/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Base UNECE",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Tools",
"license": "LGPL-3",
"development_status": "Production/Stable",
Expand Down
16 changes: 5 additions & 11 deletions base_unece/models/unece_code_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,9 @@ def _compute_display_name(self):
# Exemple : on UNECE Tax category, when you type "S", you should get only
# "[S] Standard rate"
@api.model
def _name_search(self, name, domain=None, operator="ilike", limit=None, order=None):
if domain is None:
domain = []
if name and operator == "ilike":
ids = list(
self._search([("code", "=", name)] + domain, limit=limit, order=order)
)
def _search_display_name(self, operator, value):
if value and operator == "ilike":
ids = list(self._search([("code", "=", value)]))
if ids:
return ids
return super()._name_search(
name, domain=domain, operator=operator, limit=limit, order=order
)
return [("id", "in", ids)]
return super()._search_display_name(operator, value)
1 change: 1 addition & 0 deletions base_unece/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
- Levent Karakaş
- Pedro M. Baeza
- Andrea Stirpe
- Nhan Tran \<<[email protected]>\>
18 changes: 11 additions & 7 deletions base_unece/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -368,7 +369,7 @@ <h1 class="title">Base UNECE</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:289329077c03d4b8165a8129a3dbc91ebe7a77ae819f4a871eb03a2938b01c6d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/community-data-files/tree/17.0/base_unece"><img alt="OCA/community-data-files" src="https://img.shields.io/badge/github-OCA%2Fcommunity--data--files-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/community-data-files-17-0/community-data-files-17-0-base_unece"><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/community-data-files&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/community-data-files/tree/18.0/base_unece"><img alt="OCA/community-data-files" src="https://img.shields.io/badge/github-OCA%2Fcommunity--data--files-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/community-data-files-18-0/community-data-files-18-0-base_unece"><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/community-data-files&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds the technical basis for the use of the code lists
standardized by the <a class="reference external" href="http://www.unece.org">United Nations Economic Commission for
Europe</a> (which has 56 members states in Europe,
Expand Down Expand Up @@ -400,7 +401,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/community-data-files/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/community-data-files/issues/new?body=module:%20base_unece%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/community-data-files/issues/new?body=module:%20base_unece%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -418,18 +419,21 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>Levent Karakaş</li>
<li>Pedro M. Baeza</li>
<li>Andrea Stirpe</li>
<li>Nhan Tran &lt;<a class="reference external" href="mailto:nhant&#64;trobz.com">nhant&#64;trobz.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/astirpe"><img alt="astirpe" src="https://github.com/astirpe.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/alexis-via"><img alt="alexis-via" src="https://github.com/alexis-via.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/community-data-files/tree/17.0/base_unece">OCA/community-data-files</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/community-data-files/tree/18.0/base_unece">OCA/community-data-files</a> project on GitHub.</p>
<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>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions base_unece/views/unece_code_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
<record id="unece_code_list_tree" model="ir.ui.view">
<field name="model">unece.code.list</field>
<field name="arch" type="xml">
<tree>
<list>
<field
name="type"
column_invisible="not context.get('unece_code_list_main_view')"
/>
<field name="code" />
<field name="name" />
<field name="description" optional="show" />
</tree>
</list>
</field>
</record>
<record id="unece_code_list_search" model="ir.ui.view">
Expand Down Expand Up @@ -74,7 +74,7 @@
<record id="unece_code_list_action" model="ir.actions.act_window">
<field name="name">UNECE Code Lists</field>
<field name="res_model">unece.code.list</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
<field name="context">{'unece_code_list_main_view': True}</field>
</record>
<menuitem
Expand Down

0 comments on commit 051864a

Please sign in to comment.