diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-15 17:33:46 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-15 17:33:46 +0700 |
| commit | 50769e870756dd350421a205e6d49ab555023764 (patch) | |
| tree | a3aaa4d3a95ca1061c888b89a44db6af21d8cb52 /indoteknik_custom/views | |
| parent | f5fc52453c0f7e52b6c87fa57d2de5120c3041e0 (diff) | |
<miqdad> fix state view and add ingoing field
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/tukar_guling.xml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/indoteknik_custom/views/tukar_guling.xml b/indoteknik_custom/views/tukar_guling.xml index 8fffcbb0..9b490cd0 100644 --- a/indoteknik_custom/views/tukar_guling.xml +++ b/indoteknik_custom/views/tukar_guling.xml @@ -38,6 +38,7 @@ <field name="name"/> <field name="date"/> <field name="out_num" string="BU/Out"/> + <field name="in_num" string="BU/In"/> <field name="ba_num" string="Nomor BA"/> <field name="return_type" string="Return Type"/> <field name="state" widget="badge" @@ -70,8 +71,7 @@ class="btn-secondary" attrs="{'invisible': [('state', '!=', 'cancel')]}" confirm="Are you sure you want to reset this record to draft?"/> - <field name="state" widget="statusbar" - statusbar_visible="draft,waiting,done,cancel"/> + <field name="state" widget="statusbar" readonly="1"/> </header> <sheet> <div class="oe_title"> @@ -83,13 +83,19 @@ <group> <group> <field name="date" string="Date" readonly="1"/> - <field name="out_num" string="BU/Out"/> + <field name="out_num" string="BU/Out" + attrs="{'invisible': [('return_type', 'not in', ['tukar_guling', 'credit_memo', 'revisi_so'])], + 'required': [('return_type', 'in', ['tukar_guling', 'credit_memo', 'revisi_so'])]}"/> + + <field name="in_num" string="BU/In" + attrs="{'invisible': [('return_type', 'not in', ['debit_memo', 'revisi_po'])], + 'required': [('return_type', 'in', ['debit_memo', 'revisi_po'])]}"/> <field name="ba_num" string="Nomor BA"/> </group> <group> <field name="return_type"/> <field name="notes"/> - <field name="state" readonly="1"/> +<!-- <field name="state" readonly="1"/>--> </group> </group> |
