diff options
Diffstat (limited to 'indoteknik_custom/views/advance_payment_request.xml')
| -rw-r--r-- | indoteknik_custom/views/advance_payment_request.xml | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/indoteknik_custom/views/advance_payment_request.xml b/indoteknik_custom/views/advance_payment_request.xml index 6a0d61b1..c33a2843 100644 --- a/indoteknik_custom/views/advance_payment_request.xml +++ b/indoteknik_custom/views/advance_payment_request.xml @@ -10,7 +10,10 @@ type="object" string="Realisasi" class="btn-primary" - attrs="{'invisible': ['|', ('status', '!=', 'approved'), ('has_settlement', '=', True)]}"/> + attrs="{'invisible': ['|', + ('status', '!=', 'approved'), + '|', ('type_request', '!=', 'pum'), + ('has_settlement', '=', True)]}"/> <button name="action_approval_check" type="object" string="Checking/Approval" @@ -66,7 +69,7 @@ name="action_view_journal_uangmuka" class="oe_stat_button" icon="fa-book" - attrs="{'invisible': [('is_cab_visible', '=', False)], 'readonly': [('is_current_user_ap', '=', False)]}" + attrs="{'invisible': [('is_cab_visible', '=', False)]}" style="width: 200px;"> <field name="move_id" widget="statinfo" string="Journal Uang Muka"/> <span class="o_stat_text"> @@ -110,14 +113,14 @@ </group> <group string="Bukti Transfer"> <field name="upload_attachment_date" readonly="1"/> - <field name="attachment_type" attrs="{'readonly': [('status', '=', 'approved')]}"/> + <field name="attachment_type" attrs="{'readonly': [('is_current_user_ap', '=', False)]}" /> <field name="attachment_file_pdf" filename="attachment_filename" widget="pdf_viewer" - attrs="{'invisible': [('attachment_type', '!=', 'pdf')], 'readonly': [('status', '=', 'approved')]}"/> + attrs="{'invisible': [('attachment_type', '!=', 'pdf')], 'readonly': [('is_current_user_ap', '=', False)]}"/> <field name="attachment_file_image" filename="attachment_filename" widget="image" - attrs="{'invisible': [('attachment_type', '!=', 'image')], 'readonly': [('status', '=', 'approved')]}" + attrs="{'invisible': [('attachment_type', '!=', 'image')], 'readonly': [('is_current_user_ap', '=', False)]}" style="max-width:250px; max-height:250px; object-fit:contain;"/> <br/> </group> @@ -205,7 +208,7 @@ decoration-danger="status_pay_down_payment == 'pending'" widget="badge"/> <field name="days_remaining" readonly="1" widget="badge" optional="hide"/> - <field name="estimated_return_date" widget="badge" /> + <field name="estimated_return_date" widget="badge" optional="hide"/> </tree> </field> </record> @@ -226,7 +229,7 @@ <menuitem id="menu_advance_payment_request_sales" name="Pengajuan Uang Muka & Reimburse" - parent="sale.product_menu_catalog" + parent="indoteknik_custom.menu_monitoring_in_sale" sequence="101" action="action_advance_payment_request" /> |
