Skip to content

Commit

Permalink
fastapi_auth_partner: fix view inheriting
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Oct 22, 2024
1 parent cdd4f0d commit b71a156
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions fastapi_auth_partner/views/fastapi_endpoint_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
<field name="model">fastapi.endpoint</field>
<field name="inherit_id" ref="fastapi.fastapi_endpoint_form_view" />
<field name="arch" type="xml">
<field name="demo_auth_method" position="after">
<field name="is_auth_partner" invisible="1" />
<field
name="directory_id"
attrs="{
'invisible': [('is_auth_partner', '=', False)],
'required': [('is_auth_partner', '=', True)]
}"
/>
</field>
<span name="configuration" position="after">
<group name="Auth Configuration">
<field name="is_auth_partner" invisible="1" />
<field
name="directory_id"
attrs="{
'invisible': [('is_auth_partner', '=', False)],
'required': [('is_auth_partner', '=', True)]
}"
/>
</group>
</span>
<field name="openapi_url" position="after">
<field name="public_url" widget="url" />
<field name="public_api_url" widget="url" />
Expand Down

0 comments on commit b71a156

Please sign in to comment.