diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-11-14 11:45:32 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-11-14 11:45:32 +0700 |
| commit | 0b85c98761260dd93b70fa429340c4edbf5154b1 (patch) | |
| tree | 8ddc71d430371289834db659c3cb247a4712a10e /indoteknik_custom/views | |
| parent | d6c056a43636bd2707620649cb1917ea341f1400 (diff) | |
add approval if want to return
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/stock_picking.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index d53bf5b5..ce70fdd8 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -10,6 +10,12 @@ <button name="ask_approval" string="Ask Approval" type="object" + attrs="{'invisible': [('is_internal_use', '=', False)]}" + /> + <button name="ask_return_approval" + string="Ask Return/Acc" + type="object" + attrs="{'invisible': ['|', ('state', '=', 'draft'), ('state', '=', 'cancel'), ('approval_return_status', '=', 'pengajuan1')]}" /> </button> <div class="oe_title" position="after"> @@ -34,7 +40,8 @@ <field name="real_shipping_id"/> </field> <field name="origin" position="after"> - <field name="approval_status"/> + <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" |
