diff --git a/README.md b/README.md index 8f8541116f0..18003ea66c9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/base_order_by_related/README.rst b/base_order_by_related/README.rst index e69de29bb2d..364f2cb39d0 100644 --- a/base_order_by_related/README.rst +++ b/base_order_by_related/README.rst @@ -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 `_. +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Therp BV + +Contributors +~~~~~~~~~~~~ + +* Tom Blauwendraat + +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 `__: + +|maintainer-thomaspaulb| + +This module is part of the `OCA/server-tools `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_order_by_related/static/description/icon.png b/base_order_by_related/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/base_order_by_related/static/description/icon.png differ diff --git a/base_order_by_related/static/description/index.html b/base_order_by_related/static/description/index.html new file mode 100644 index 00000000000..8d590252a7d --- /dev/null +++ b/base_order_by_related/static/description/index.html @@ -0,0 +1,436 @@ + + + + + +Base order by related + + + + + + diff --git a/setup/_metapackage/VERSION.txt b/setup/_metapackage/VERSION.txt index f246a515969..a2f915b170d 100644 --- a/setup/_metapackage/VERSION.txt +++ b/setup/_metapackage/VERSION.txt @@ -1 +1 @@ -14.0.20240202.0 \ No newline at end of file +14.0.20240215.0 \ No newline at end of file diff --git a/setup/_metapackage/setup.py b/setup/_metapackage/setup.py index 1e4887205b4..e73257b003c 100644 --- a/setup/_metapackage/setup.py +++ b/setup/_metapackage/setup.py @@ -34,6 +34,7 @@ 'odoo14-addon-base_multi_image', 'odoo14-addon-base_name_search_improved', 'odoo14-addon-base_name_search_multi_lang', + 'odoo14-addon-base_order_by_related', 'odoo14-addon-base_remote', 'odoo14-addon-base_report_auto_create_qweb', 'odoo14-addon-base_search_fuzzy',