<?xml version="1.0"?>
<form string="Scheduled Message">
                    <sheet>
                        <group>
                            <label for="partner_ids" string="To" invisible="is_note"/>
                            <div invisible="is_note">
                                <field name="model" invisible="1"/>
                                <field name="res_id" invisible="1"/>
                                <widget name="mail_composer_recipient_list" thread_model_field="model" thread_id_field="res_id"/>
                                <field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to notify..." options="{'no_quick_create': True}" context="{'show_email': True, 'form_view_ref': 'base.view_partner_simple_form'}"/>
                            </div>
                            <field name="scheduled_date" options="{'min_date': 'today'}"/>
                            <field name="subject" required="True"/>
                        </group>
                        <group col="1">
                            <field name="body" widget="html_composer_message" force_save="1" nolabel="1" placeholder="Write your message here..."/>
                            <field name="attachment_ids" widget="mail_composer_attachment_list" nolabel="1"/>
                        </group>
                    </sheet>
                    <footer>
                        <button string="Save" class="btn-primary" special="save" data-hotkey="S"/>
                        <button string="Send Now" invisible="is_note" type="object" name="post_message" data-hotkey="q"/>
                        <button string="Log Now" invisible="not is_note" type="object" name="post_message" data-hotkey="q"/>
                        <button string="Discard" class="btn-secondary" special="cancel" data-hotkey="x"/>
                        <field name="attachment_ids" widget="mail_composer_attachment_selector"/>
                        <field name="body" widget="mail_composer_chatgpt"/> 
                    </footer>
                </form>
            