diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-06-21 10:25:26 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-06-21 10:25:26 +0700 |
| commit | c1a0d0e48ef64241c92947a8800f93af4ff109d0 (patch) | |
| tree | f2b0e94f7447b4082ba66592373907da38797efc /indoteknik_custom/views | |
| parent | 45fcd7ed448a8fc4c731433823375aea013abbd5 (diff) | |
fix approval receipt and hide uneccesary column
Diffstat (limited to 'indoteknik_custom/views')
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 1 | ||||
| -rw-r--r-- | indoteknik_custom/views/stock_picking.xml | 4 |
3 files changed, 4 insertions, 2 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 7a397ff6..5b0c99ef 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -24,6 +24,7 @@ <button name="po_approve" string="Ask Approval" type="object" + attrs="{'invisible': [('approval_status', '=', 'approved')]}" /> <button name="indoteknik_custom.action_view_uangmuka_pembelian" string="UangMuka" type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}"/> diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index ea84eb00..85f687c1 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -14,6 +14,7 @@ <button name="sale_order_approve" string="Ask Approval" type="object" + attrs="{'invisible': [('approval_status', 'in', ['pengajuan1', 'pengajuan2', 'approved'])]}" /> <button name="indoteknik_custom.action_view_uangmuka_penjualan" string="UangMuka" type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}"/> diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index f95db854..99f0d7c0 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -28,7 +28,7 @@ attrs="{'invisible': [('is_internal_use', '=', False)]}" /> <button name="ask_receipt_approval" - string="Ask Receipt" + string="Received" type="object" attrs="{'invisible': ['|', ('state', 'in', ['done']), ('approval_receipt_status', '=', 'pengajuan1')]}" /> @@ -74,7 +74,7 @@ <field name="approval_return_status"/> </field> <field name="product_id" position="before"> - <field name="line_no" attrs="{'readonly': 1}"/> + <field name="line_no" attrs="{'readonly': 1}" optional="hide"/> </field> <page name="note" position="after"> <page string="E-Faktur" name="efaktur" attrs="{'invisible': [['is_internal_use', '=', False]]}"> |
