From 758f2c4594affc2011aafde481d59f3b9158a177 Mon Sep 17 00:00:00 2001 From: Simone Orsi Date: Tue, 23 Jul 2024 08:43:29 +0200 Subject: [PATCH] endpoint: add basic mixin view As the mixin can be inherited by many other models w/ their view an isolated basic view is required to avoid pollution and breakage of inherited views when extending the views of endpoint.endpoint. In particular, this solves a conflict that came w/ https://github.com/OCA/web-api-contrib/pull/1 --- endpoint/views/endpoint_view.xml | 20 ++++++++++++++++--- endpoint_auth_api_key/views/endpoint_view.xml | 4 ++-- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/endpoint/views/endpoint_view.xml b/endpoint/views/endpoint_view.xml index dbbc09c3..a3e2eed7 100644 --- a/endpoint/views/endpoint_view.xml +++ b/endpoint/views/endpoint_view.xml @@ -3,9 +3,10 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). --> - - endpoint.endpoint.form - endpoint.endpoint + + + endpoint.mixin.form + endpoint.mixin
@@ -90,6 +91,19 @@ + + endpoint.endpoint.form + endpoint.endpoint + + primary + + + + real + + + + endpoint.endpoint.search endpoint.endpoint diff --git a/endpoint_auth_api_key/views/endpoint_view.xml b/endpoint_auth_api_key/views/endpoint_view.xml index cd12ca01..55323781 100644 --- a/endpoint_auth_api_key/views/endpoint_view.xml +++ b/endpoint_auth_api_key/views/endpoint_view.xml @@ -3,9 +3,9 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). --> - + endpoint.endpoint - +