<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2017-2021 Akretion France (http://www.akretion.com/)
  @author: Alexis de Lattre <alexis.delattre@akretion.com>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<odoo>

<record id="view_order_form" model="ir.ui.view">
    <field name="name">sale.confirm.wizard.sale_order_form</field>
    <field name="model">sale.order</field>
    <field name="inherit_id" ref="sale.view_order_form"/>
    <field name="arch" type="xml">
        <button id="action_confirm" position="attributes">
            <attribute name="name">sale_confirm_wizard_button</attribute>
        </button>
        <button name="action_confirm" attrs="{'invisible': [('state', 'not in', ['draft'])]}" position="attributes">
            <attribute name="name">sale_confirm_wizard_button</attribute>
        </button>
    </field>
</record>

</odoo>
