diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-08-06 10:07:39 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-08-06 10:07:39 +0700 |
| commit | 4a995bd555f1c9c766941cc4ad1286e60beb524b (patch) | |
| tree | 60e276b9fd2d396ac088b9cc7b310ac45f33bc5d | |
| parent | fcae9b43dc261223b242265141353974300a304f (diff) | |
(andri) fix attachment
| -rw-r--r-- | indoteknik_custom/views/down_payment_realization.xml | 24 |
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> |
