Skip to content

Commit 3ba0b8c

Browse files
committed
fastapi_auth_partner: fix view inheriting
1 parent cdd4f0d commit 3ba0b8c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

fastapi_auth_partner/views/fastapi_endpoint_view.xml

+12-10
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
<field name="model">fastapi.endpoint</field>
55
<field name="inherit_id" ref="fastapi.fastapi_endpoint_form_view" />
66
<field name="arch" type="xml">
7-
<field name="demo_auth_method" position="after">
8-
<field name="is_auth_partner" invisible="1" />
9-
<field
10-
name="directory_id"
11-
attrs="{
12-
'invisible': [('is_auth_partner', '=', False)],
13-
'required': [('is_auth_partner', '=', True)]
14-
}"
15-
/>
16-
</field>
7+
<span name="configuration" position="after">
8+
<group name="Auth Configuration">
9+
<field name="is_auth_partner" invisible="1" />
10+
<field
11+
name="directory_id"
12+
attrs="{
13+
'invisible': [('is_auth_partner', '=', False)],
14+
'required': [('is_auth_partner', '=', True)]
15+
}"
16+
/>
17+
</group>
18+
</span>
1719
<field name="openapi_url" position="after">
1820
<field name="public_url" widget="url" />
1921
<field name="public_api_url" widget="url" />

0 commit comments

Comments
 (0)