Skip to content

Commit

Permalink
Merge PR #57 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Jul 26, 2024
2 parents 8bf71b6 + 758f2c4 commit eb4ef27
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
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

0 comments on commit eb4ef27

Please sign in to comment.