diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-12-02 09:31:13 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-12-02 09:31:13 +0700 |
| commit | 6fbfe31167e6eb66d4995374dadb14774026e8c7 (patch) | |
| tree | 044465ba37c6c6bc47ca2f0d6729ef6a64836397 /indoteknik_custom/views/user_pengajuan_tempo_request.xml | |
| parent | 07c14fedc459106189d040e7724e6d7f81051658 (diff) | |
<iman> pengajuan tempo update
Diffstat (limited to 'indoteknik_custom/views/user_pengajuan_tempo_request.xml')
| -rw-r--r-- | indoteknik_custom/views/user_pengajuan_tempo_request.xml | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/indoteknik_custom/views/user_pengajuan_tempo_request.xml b/indoteknik_custom/views/user_pengajuan_tempo_request.xml index 3b08799c..4a8243da 100644 --- a/indoteknik_custom/views/user_pengajuan_tempo_request.xml +++ b/indoteknik_custom/views/user_pengajuan_tempo_request.xml @@ -7,12 +7,6 @@ <tree create="1" default_order="create_date desc"> <field name="user_id"/> <field name="pengajuan_tempo_id"/> - <field - name="is_approve" - widget="badge" - decoration-success="is_approve == 'approved'" - decoration-danger="is_approve == 'rejected'" - /> <field name="create_date"/> </tree> </field> @@ -23,17 +17,29 @@ <field name="model">user.pengajuan.tempo.request</field> <field name="arch" type="xml"> <form create="0"> + <header> + <button name="button_approve" + string="Approve Tempo" + attrs="{'visible': [ ('state_tempo', 'in', ['draft', 'approval_sales', 'approval_finance'])]}" + type="object" + class="oe_highlight" + /> + +<!-- <button name="action_reject"--> +<!-- string="Reject"--> +<!-- attrs="{'invisible': [('state_tempo', 'not in', ['approval_director'])]}"--> +<!-- type="object"--> +<!-- groups="purchase.group_purchase_manager"--> +<!-- class="oe_highlight" />--> + <field name="state_tempo" widget="statusbar" statusbar_visible="draft,approval_sales,approval_finance,approval_director"/> + </header> <sheet> <group> <group> <field name="user_id" readonly="1"/> <field name="pengajuan_tempo_id"/> - <field - name="is_approve" - required="1" - decoration-success="is_approve == 'approved'" - decoration-danger="is_approve == 'rejected'" - /> + <field name="tempo_duration" attrs="{'readonly': [('state_tempo', '=', 'approval_director')]}"/> + <field name="tempo_limit" attrs="{'readonly': [('state_tempo', '=', 'approval_director')]}"/> </group> </group> </sheet> |
