Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FWD] endpoint: add basic mixin view #57

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions endpoint/views/endpoint_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<odoo>

<record model="ir.ui.view" id="endpoint_endpoint_form_view">
<field name="name">endpoint.endpoint.form</field>
<field name="model">endpoint.endpoint</field>
<!-- Basic view inheritable by real models -->
<record model="ir.ui.view" id="endpoint_mixin_form_view">
<field name="name">endpoint.mixin.form</field>
<field name="model">endpoint.mixin</field>
<field name="arch" type="xml">
<form>
<header />
Expand Down Expand Up @@ -90,6 +91,19 @@
</field>
</record>

<record model="ir.ui.view" id="endpoint_endpoint_form_view">
<field name="name">endpoint.endpoint.form</field>
<field name="model">endpoint.endpoint</field>
<field name="inherit_id" ref="endpoint.endpoint_mixin_form_view" />
<field name="mode">primary</field>
<field name="arch" type="xml">
<form position="attributes">
<!-- Needed just to make further inheritance happy -->
<attribute name="name">real</attribute>
</form>
</field>
</record>

<record model="ir.ui.view" id="endpoint_endpoint_search_view">
<field name="name">endpoint.endpoint.search</field>
<field name="model">endpoint.endpoint</field>
Expand Down
4 changes: 2 additions & 2 deletions endpoint_auth_api_key/views/endpoint_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
<odoo>

<record model="ir.ui.view" id="endpoint_endpoint_form_view">
<record model="ir.ui.view" id="endpoint_mixin_form_view">
<field name="model">endpoint.endpoint</field>
<field name="inherit_id" ref="endpoint.endpoint_endpoint_form_view" />
<field name="inherit_id" ref="endpoint.endpoint_mixin_form_view" />
<field name="arch" type="xml">
<group name="auth" position="inside">
<field
Expand Down
Loading