<?xml version="1.0"?>
<button name="action_draft" position="after">
                <t groups="sale.group_auto_done_setting">
                    <button name="action_done" type="object" string="Lock" states="sale" help="If the sale is locked, you can not modify it anymore. However, you will still be able to invoice or deliver." groups="sales_team.group_sale_manager"/>
                    <button name="action_unlock" type="object" string="Unlock" states="done" groups="sales_team.group_sale_manager"/>
                </t>
            </button>
        