summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/tukar_guling_po.xml
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views/tukar_guling_po.xml')
-rw-r--r--indoteknik_custom/views/tukar_guling_po.xml13
1 files changed, 9 insertions, 4 deletions
diff --git a/indoteknik_custom/views/tukar_guling_po.xml b/indoteknik_custom/views/tukar_guling_po.xml
index 26c0a0d4..d0ae9e96 100644
--- a/indoteknik_custom/views/tukar_guling_po.xml
+++ b/indoteknik_custom/views/tukar_guling_po.xml
@@ -24,11 +24,12 @@
<tree create="1" delete="1" default_order="create_date desc">
<field name="name"/>
<field name="vendor_id" string="Customer"/>
- <field name="origin" string="SO Number"/>
+ <field name="origin" string="PO Number"/>
<field name="operations" string="Operations"/>
<field name="return_type" string="Return Type"/>
<field name="state" widget="badge"
decoration-info="state in ('draft', 'approval_purchase', 'approval_finance','approval_logistic')"
+ decoration-warning="state == 'approved'"
decoration-success="state == 'done'"
decoration-muted="state == 'cancel'"
/>
@@ -60,7 +61,7 @@
attrs="{'invisible': [('state', '!=', 'cancel')]}"
confirm="Are you sure you want to reset this record to draft?"/>
<field name="state" widget="statusbar" readonly="1"
- statusbar_visible="draft,approval_purchase,approval_logistic,approval_finance,done"/>
+ statusbar_visible="draft,approval_purchase,approval_logistic,approval_finance,approved,done"/>
</header>
<sheet>
<div class="oe_button_box">
@@ -88,10 +89,14 @@
attrs="{
'required': [('return_type', 'in', ['revisi_po', 'tukar_guling'])]
}"/>
- <field name="origin" readonly="1"/>
- <!-- <field name="origin_so" readonly="1"/>-->
+<!-- <field name="origin" readonly="1"/>-->
+ <field name="origin_po" readonly="1"/>
+ <field name="is_has_bill" readonly="1"/>
+<!-- <field name="bill_id" readonly="1" />-->
+ <field name="bill_id" readonly="1" widget="many2many_tags"/>
</group>
<group>
+ <field name="val_bil_opt" attrs="{'invisible': [('is_has_bill', '=', False)]}"/>
<field name="ba_num" string="Nomor BA"/>
<field name="notes"/>
<field name="date_purchase" readonly="1"/>