<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

    <record id="stock_picking_form_inherit" model="ir.ui.view">
        <field name="name">stock.picking.form.view.inherit</field>
        <field name="model">stock.picking</field>
        <field name="inherit_id" ref="stock.view_picking_form"/>
        <field name="arch" type="xml">
            <xpath expr="//div[@name='button_box']" position="inside">
                <field name="signifyd_hold" invisible="1"/>
                <field name="singifyd_case_id" invisible="1"/>
                <button name="action_view_signifyd_case" string="On Hold" type="object" class="oe_stat_button text-danger"
                        icon="fa-hand-stop-o" attrs="{'invisible': [ '|', ('signifyd_hold', '=', 'ACCEPT'), ('singifyd_case_id', '=', False)]}"/>

                <button name="action_view_signifyd_case" string="Approved" type="object" class="oe_stat_button text-success"
                        icon="fa-thumbs-o-up" attrs="{'invisible': [ '|', ('signifyd_hold', '!=', 'ACCEPT'), ('singifyd_case_id', '=', False)]}"/>
            </xpath>
        </field>

    </record>

</odoo>