<?xml version="1.0"?>
<form string="SMS">
                <header>
                    <button name="send" string="Send Now" type="object" states="outgoing" class="oe_highlight"/>
                    <button name="action_set_outgoing" string="Retry" type="object" states="error,canceled"/>
                    <button name="action_set_canceled" string="Cancel" type="object" states="error,outgoing"/>
                    <field name="state" widget="statusbar"/>
                </header>
                <sheet>
                    <group>
                        <group>
                            <field name="partner_id" string="Contact"/>
                            <field name="mail_message_id" readonly="1" attrs="{'invisible': [('mail_message_id', '=', False)]}"/>
                        </group>
                        <group>
                            <field name="number" required="1"/>
                            <field name="failure_type" readonly="1" attrs="{'invisible': [('failure_type', '=', False)]}"/>
                        </group>
                    </group>
                    <group>
                        <field name="body" widget="sms_widget" string="Message" required="1"/>
                    </group>
                </sheet>
            </form>
        