Skip to content

Commit

Permalink
Merge PR #56 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Jul 25, 2024
2 parents 0ec727f + 9679b5d commit a16ab02
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 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
4 changes: 2 additions & 2 deletions endpoint_cache/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">
<notebook>
<page string="Cache">
Expand Down
4 changes: 2 additions & 2 deletions endpoint_jsonifier/views/endpoint_endpoint.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="endpoint_endpoint_form_view" model="ir.ui.view">
<record id="endpoint_mixin_form_view" model="ir.ui.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">
<notebook position="inside">
<page name="export" string="Export">
Expand Down

0 comments on commit a16ab02

Please sign in to comment.