summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/views/down_payment_realization.xml24
1 files changed, 19 insertions, 5 deletions
diff --git a/indoteknik_custom/views/down_payment_realization.xml b/indoteknik_custom/views/down_payment_realization.xml
index 9d6a8f02..3f52c2a4 100644
--- a/indoteknik_custom/views/down_payment_realization.xml
+++ b/indoteknik_custom/views/down_payment_realization.xml
@@ -102,17 +102,31 @@
<field name="description"/>
<field name="nominal"/>
<field name="attachment_type"
- attrs="{'invisible': [('lot_of_attachment', '=', 'one_for_all_line')]}"/>
-
+ attrs="{
+ 'invisible': [('lot_of_attachment', '=', 'one_for_all_line')]
+ }"/>
<field name="attachment_file_pdf"
filename="attachment_filename_pdf"
widget="pdf_viewer"
- attrs="{'invisible': [('attachment_type', '!=', 'pdf'), ('lot_of_attachment', '=', 'one_for_all_line')]}"/>
-
+ attrs="{
+ 'invisible': [
+ '|',
+ ('lot_of_attachment', '=', 'one_for_all_line'),
+ ('attachment_type', '!=', 'pdf')
+ ]
+ }"/>
<field name="attachment_file_image"
filename="attachment_filename_image"
widget="image"
- attrs="{'invisible': [('attachment_type', '!=', 'image'), ('lot_of_attachment', '=', 'one_for_all_line')]}"/>
+ attrs="{
+ 'invisible': [
+ '|',
+ ('lot_of_attachment', '=', 'one_for_all_line'),
+ ('attachment_type', '!=', 'image')
+ ]
+ }"
+ style="max-width:250px; max-height:250px; object-fit:contain;"/>
+
<field name="done_attachment"/>
</group>
</form>