summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-06-20 18:00:42 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-06-20 18:00:42 +0700
commit837228a2b4b799de182e52096f638ee5f491137a (patch)
treeec6885ea4ae9c52cdd34871c79d4f770defda5a7 /indoteknik_custom/views
parent7b5e3a665220ebdc1f4c680df2202dc4eb12f4e3 (diff)
fix code receipt approval
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/stock_picking.xml24
1 files changed, 16 insertions, 8 deletions
diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml
index 02003e05..f95db854 100644
--- a/indoteknik_custom/views/stock_picking.xml
+++ b/indoteknik_custom/views/stock_picking.xml
@@ -27,6 +27,11 @@
type="object"
attrs="{'invisible': [('is_internal_use', '=', False)]}"
/>
+ <button name="ask_receipt_approval"
+ string="Ask Receipt"
+ type="object"
+ attrs="{'invisible': ['|', ('state', 'in', ['done']), ('approval_receipt_status', '=', 'pengajuan1')]}"
+ />
<button name="ask_return_approval"
string="Ask Return/Acc"
type="object"
@@ -39,12 +44,6 @@
/>
</button>
<field name="backorder_id" position="after">
- <field name="is_internal_use"
- string="Internal Use"
- type="object"
- attrs="{'readonly': True}"
- force_save="1"
- />
<field name="summary_qty_detail"/>
<field name="count_line_detail"/>
</field>
@@ -53,8 +52,6 @@
</field>
<field name="origin" position="after">
<field name="date_doc_kirim"/>
- <field name="approval_status" attrs="{'invisible': [('is_internal_use', '=', False)]}"/>
- <field name="approval_return_status" attrs="{'invisible': [('approval_return_status', '=', False)]}"/>
<field name="summary_qty_operation"/>
<field name="count_line_operation"/>
<field name="account_id"
@@ -65,6 +62,17 @@
}"
/>
</field>
+ <field name="group_id" position="before">
+ <field name="is_internal_use"
+ string="Internal Use"
+ type="object"
+ attrs="{'readonly': True}"
+ force_save="1"
+ />
+ <field name="approval_status"/>
+ <field name="approval_receipt_status"/>
+ <field name="approval_return_status"/>
+ </field>
<field name="product_id" position="before">
<field name="line_no" attrs="{'readonly': 1}"/>
</field>