Skip to content

Commit

Permalink
[MIG] openapi: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
azimkhankuat committed Oct 14, 2024
1 parent 3cfe6bb commit f3884c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions openapi/views/openapi_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
invisible="active == True"
/>
<div class="oe_title">
<group>
Expand All @@ -74,12 +74,12 @@
<field name="api_public_methods" />
<field
name="public_methods"
attrs="{'invisible': [('api_public_methods', '=', False)]}"
invisible="api_public_methods == False"
/>
<field name="private_methods" />
<field
name="read_one_id"
attrs="{'readonly': [('model_id', '=', False)]}"
readonly="model_id == False"
context="{'default_resource': model, 'default_name': context.get('parent_name', '&lt;parent_namespace_name&gt;') + ' / ' + model + ' / read_one'}"
>
<form string="Read One Fields">
Expand All @@ -98,7 +98,8 @@
</field>
<field
name="read_many_id"
attrs="{'readonly': [('model_id', '=', False)], 'invisible': [('api_read', '=', False)]}"
readonly="model_id == False"
invisible="api_read == False"
context="{'default_resource': model, 'default_name': context.get('parent_name', '&lt;parent_namespace_name&gt;') + ' / ' + model + ' / read_many'}"
>
<form string="Read Many Fields">
Expand All @@ -117,11 +118,11 @@
</field>
</group>
</div>
<notebook attrs="{'invisible': [('api_create', '=', False)]}">
<notebook invisible="api_create == False">
<page string="Creation Context Presets">
<field
name="create_context_ids"
attrs="{'readonly': [('model_id', '=', False)]}"
readonly="model_id == False"
context="{'default_model_id': model_id}"
>
<form string="Creation Context Presets">
Expand Down Expand Up @@ -149,7 +150,7 @@
string="Reset Token"
confirm="Do you want to proceed reset token?"
type="object"
attrs="{'invisible': [('id', '=', False)]}"
invisible="id == False"
/>
</header>
<sheet>
Expand All @@ -167,7 +168,7 @@
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
invisible="active == True"
/>
<div class="oe_title">
<label for="name" class="oe_edit_only" />
Expand Down
2 changes: 1 addition & 1 deletion openapi/views/res_users_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
string="Reset OpenAPI Token"
confirm="Do you want to proceed reset token?"
type="object"
attrs="{'invisible': [('id', '=', False)]}"
invisible="id == False"
/>
</header>
<notebook position="inside">
Expand Down

0 comments on commit f3884c3

Please sign in to comment.