Skip to content

Commit

Permalink
[BOT] post-merge updates
Browse files Browse the repository at this point in the history
  • Loading branch information
OCA-git-bot committed Feb 15, 2024
1 parent e276dad commit ad96c09
Show file tree
Hide file tree
Showing 6 changed files with 536 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ addon | version | maintainers | summary
[base_multi_image](base_multi_image/) | 14.0.1.0.1 | | Allow multiple images for database objects
[base_name_search_improved](base_name_search_improved/) | 14.0.1.1.1 | | Friendlier search when typing in relation fields
[base_name_search_multi_lang](base_name_search_multi_lang/) | 14.0.1.0.0 | [![kittiu](https://github.com/kittiu.png?size=30px)](https://github.com/kittiu) | Name search by multiple active language
[base_order_by_related](base_order_by_related/) | 14.0.1.0.0 | [![thomaspaulb](https://github.com/thomaspaulb.png?size=30px)](https://github.com/thomaspaulb) | Order by non-stored related fields
[base_remote](base_remote/) | 14.0.1.0.1 | | Remote Base
[base_report_auto_create_qweb](base_report_auto_create_qweb/) | 14.0.1.0.1 | | Report qweb auto generation
[base_search_fuzzy](base_search_fuzzy/) | 14.0.1.0.3 | | Fuzzy search with the PostgreSQL trigram extension
Expand Down
97 changes: 97 additions & 0 deletions base_order_by_related/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
=====================
Base order by related
=====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5a2f274bad5669f872068a0636e91112968f8870464e5b6bae453c5728d02506
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/OCA/server-tools/tree/14.0/base_order_by_related
:alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_order_by_related
: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/server-tools&target_branch=14.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows a search to order by a non-stored related field.

**Table of contents**

.. contents::
:local:

Usage
=====

In any model where you have a non-stored related field, you can make it sortable::

class ResPartner(models.Model):
_inherit = "res.partner"

country_name = fields.Char(related="country_id.name")

# make some non-stored related fields sortable
_order_by_related = ["country_name"]

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/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/server-tools/issues/new?body=module:%20base_order_by_related%0Aversion:%2014.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.

Credits
=======

Authors
~~~~~~~

* Therp BV

Contributors
~~~~~~~~~~~~

* Tom Blauwendraat <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-thomaspaulb| image:: https://github.com/thomaspaulb.png?size=40px
:target: https://github.com/thomaspaulb
:alt: thomaspaulb

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-thomaspaulb|

This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/14.0/base_order_by_related>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Binary file added base_order_by_related/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ad96c09

Please sign in to comment.