Skip to content

Commit a39d19f

Browse files
sami-odoohisi-odoo
authored andcommitted
[FIX] base: hide File Content label for attachment type URL
Purpose: - The label `File Content (base64)` is still visible even if the attachment type is URL. Specifications: - Hide label `File Content (base64)` when attachment type is URL. task-4778138 closes odoo#209743 X-original-commit: 36929c1 Signed-off-by: Raphael Collet <[email protected]>
1 parent bf785a1 commit a39d19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odoo/addons/base/views/ir_attachment_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<group>
1414
<group class="w-100">
1515
<field name="type"/>
16-
<label for="datas" class="mt-1"/>
16+
<label for="datas" class="mt-1" invisible="type == 'url'"/>
1717
<field name="datas" nolabel="1" class="w-100" filename="name" invisible="type == 'url'"/>
1818
<field name="url" widget="url" invisible="type == 'binary'"/>
1919
<field name="mimetype" groups="base.group_no_one"/>

0 commit comments

Comments
 (0)