Skip to content

Commit

Permalink
Merge pull request #1324 from OCA/15.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/server-tools (15.0)
  • Loading branch information
bt-admin authored Oct 26, 2023
2 parents 61ca499 + fcba115 commit ad7733c
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ addon | version | maintainers | summary
[base_conditional_image](base_conditional_image/) | 15.0.1.0.0 | | This module extends the functionality to support conditional images
[base_cron_exclusion](base_cron_exclusion/) | 15.0.1.0.0 | [![LoisRForgeFlow](https://github.com/LoisRForgeFlow.png?size=30px)](https://github.com/LoisRForgeFlow) [![ChrisOForgeFlow](https://github.com/ChrisOForgeFlow.png?size=30px)](https://github.com/ChrisOForgeFlow) | Allow you to select scheduled actions that should not run simultaneously.
[base_custom_info](base_custom_info/) | 15.0.1.0.0 | | Add custom field in models
[base_exception](base_exception/) | 15.0.1.0.2 | [![hparfr](https://github.com/hparfr.png?size=30px)](https://github.com/hparfr) [![sebastienbeau](https://github.com/sebastienbeau.png?size=30px)](https://github.com/sebastienbeau) | This module provide an abstract model to manage customizable exceptions to be applied on different models (sale order, invoice, ...)
[base_exception](base_exception/) | 15.0.1.0.3 | [![hparfr](https://github.com/hparfr.png?size=30px)](https://github.com/hparfr) [![sebastienbeau](https://github.com/sebastienbeau.png?size=30px)](https://github.com/sebastienbeau) | This module provide an abstract model to manage customizable exceptions to be applied on different models (sale order, invoice, ...)
[base_fontawesome](base_fontawesome/) | 15.0.5.15.4 | | Up to date Fontawesome resources.
[base_kanban_stage](base_kanban_stage/) | 15.0.1.0.2 | | Provides stage model and abstract logic for inheritance
[base_kanban_stage_state](base_kanban_stage_state/) | 15.0.1.0.0 | | Maps stages from base_kanban_stage to states
[base_model_restrict_update](base_model_restrict_update/) | 15.0.1.0.0 | | Update Restrict Model
[base_multi_image](base_multi_image/) | 15.0.1.0.0 | | Allow multiple images for database objects
[base_remote](base_remote/) | 15.0.1.0.0 | | Remote Base
[base_search_fuzzy](base_search_fuzzy/) | 15.0.1.0.0 | | Fuzzy search with the PostgreSQL trigram extension
[base_search_fuzzy](base_search_fuzzy/) | 15.0.1.0.1 | | Fuzzy search with the PostgreSQL trigram extension
[base_sparse_field_list_support](base_sparse_field_list_support/) | 15.0.1.0.0 | | add list support to convert_to_cache()
[base_technical_user](base_technical_user/) | 15.0.1.0.0 | | Add a technical user parameter on the company
[base_time_window](base_time_window/) | 15.0.1.0.0 | | Base model to handle time windows
[base_translation_field_label](base_translation_field_label/) | 15.0.1.0.0 | [![GuillemCForgeFlow](https://github.com/GuillemCForgeFlow.png?size=30px)](https://github.com/GuillemCForgeFlow) | Shows the field label and optionally hides the Translated field value.
[base_view_inheritance_extension](base_view_inheritance_extension/) | 15.0.2.0.1 | | Adds more operators for view inheritance
[base_view_inheritance_extension](base_view_inheritance_extension/) | 15.0.2.0.2 | | Adds more operators for view inheritance
[database_cleanup](database_cleanup/) | 15.0.1.0.2 | | Database cleanup
[datetime_formatter](datetime_formatter/) | 15.0.1.0.0 | | Helper functions to give correct format to date[time] fields
[dbfilter_from_header](dbfilter_from_header/) | 15.0.1.0.0 | | Filter databases with HTTP headers
Expand Down
2 changes: 1 addition & 1 deletion base_exception/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Exception Rule
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e6446a60d810b6c43793805aa405b6f9b0bde274192a6a0609ee56bad32d359a
!! source digest: sha256:60609b2a0df15b482d13c38784b1c7f096cdf7188bb525e34af2a789ba47101d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
Expand Down
2 changes: 1 addition & 1 deletion base_exception/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Exception Rule",
"version": "15.0.1.0.2",
"version": "15.0.1.0.3",
"development_status": "Mature",
"category": "Generic Modules",
"summary": """
Expand Down
2 changes: 1 addition & 1 deletion base_exception/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Exception Rule</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e6446a60d810b6c43793805aa405b6f9b0bde274192a6a0609ee56bad32d359a
!! source digest: sha256:60609b2a0df15b482d13c38784b1c7f096cdf7188bb525e34af2a789ba47101d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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-tools/tree/15.0/base_exception"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_exception"><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-tools&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module provide an abstract model to manage customizable
Expand Down
11 changes: 10 additions & 1 deletion base_exception/tests/test_base_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ class TestBaseException(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()

# Remove this variable in v16 and put instead:
# from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
DISABLED_MAIL_CONTEXT = {
"tracking_disable": True,
"mail_create_nolog": True,
"mail_create_nosubscribe": True,
"mail_notrack": True,
"no_reset_password": True,
}
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
cls.loader = FakeModelLoader(cls.env, cls.__module__)
cls.loader.backup_registry()
from .purchase_test import ExceptionRule, LineTest, PurchaseTest, WizardTest
Expand Down
2 changes: 1 addition & 1 deletion base_search_fuzzy/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Fuzzy Search
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bab8a8a546dc3c00b8df31b9ff260401c48c6e71377990e76aa14b5f84c6e3c6
!! source digest: sha256:d1767e19a8a5caf56c01e41aa82096cf1e712200c6cd3b09e39dc6058a77b3d9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion base_search_fuzzy/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Fuzzy Search",
"summary": "Fuzzy search with the PostgreSQL trigram extension",
"category": "Uncategorized",
"version": "15.0.1.0.0",
"version": "15.0.1.0.1",
"website": "https://github.com/OCA/server-tools",
"author": "bloopark systems GmbH & Co. KG, "
"ForgeFlow, "
Expand Down
2 changes: 1 addition & 1 deletion base_search_fuzzy/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Fuzzy Search</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bab8a8a546dc3c00b8df31b9ff260401c48c6e71377990e76aa14b5f84c6e3c6
!! source digest: sha256:d1767e19a8a5caf56c01e41aa82096cf1e712200c6cd3b09e39dc6058a77b3d9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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-tools/tree/15.0/base_search_fuzzy"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_search_fuzzy"><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-tools&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This addon provides the ability to create GIN or GiST indexes of char and text
Expand Down
21 changes: 16 additions & 5 deletions base_search_fuzzy/tests/test_query_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,22 @@


class QueryGenerationCase(TransactionCase):
def setUp(self):
super(QueryGenerationCase, self).setUp()
self.ResPartner = self.env["res.partner"]
self.TrgmIndex = self.env["trgm.index"]
self.ResPartnerCategory = self.env["res.partner.category"]
@classmethod
def setUpClass(cls):
super(QueryGenerationCase, cls).setUpClass()
# Remove this variable in v16 and put instead:
# from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
DISABLED_MAIL_CONTEXT = {
"tracking_disable": True,
"mail_create_nolog": True,
"mail_create_nosubscribe": True,
"mail_notrack": True,
"no_reset_password": True,
}
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
cls.ResPartner = cls.env["res.partner"]
cls.TrgmIndex = cls.env["trgm.index"]
cls.ResPartnerCategory = cls.env["res.partner.category"]

def test_fuzzy_where_generation(self):
"""Check the generation of the where clause."""
Expand Down
2 changes: 1 addition & 1 deletion base_view_inheritance_extension/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Extended view inheritance
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f33cae95ff8b5438695fa3640ee3e87dd548c5402e5ff50b198854d76bdbb171
!! source digest: sha256:1ffe3b113ece32b4cec2c3a10909f1722c997a481ab997782f614071696be8ae
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
Expand Down
2 changes: 1 addition & 1 deletion base_view_inheritance_extension/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Extended view inheritance",
"version": "15.0.2.0.1",
"version": "15.0.2.0.2",
"development_status": "Mature",
"author": "Therp BV,Odoo Community Association (OCA)",
"license": "LGPL-3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Extended view inheritance</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f33cae95ff8b5438695fa3640ee3e87dd548c5402e5ff50b198854d76bdbb171
!! source digest: sha256:1ffe3b113ece32b4cec2c3a10909f1722c997a481ab997782f614071696be8ae
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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/server-tools/tree/15.0/base_view_inheritance_extension"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_view_inheritance_extension"><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-tools&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module was written to make it simple to add custom operators for view
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ class TestBaseViewInheritanceExtension(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
# Remove this variable in v16 and put instead:
# from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
DISABLED_MAIL_CONTEXT = {
"tracking_disable": True,
"mail_create_nolog": True,
"mail_create_nosubscribe": True,
"mail_notrack": True,
"no_reset_password": True,
}
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
cls.maxDiff = None

def test_base_view_inheritance_extension(self):
Expand Down

0 comments on commit ad7733c

Please sign in to comment.