<xpath expr="//button[@name='action_view_invoice']" position="before">
    <button name="toggle_is_virtual" type="object" class="oe_stat_button" icon="fa-cog">
    <field
        name="is_virtual" widget="boolean_button"
        string="Virtual"
        options='{"terminology": {"string_true": "Virtual", "hover_true": "Make common", "string_false": "Common", "hover_false": "Make virtual"}}'
    />
    </button>
</xpath>

 

1611137880