<commit_before><?xml version="1.0"?>
<openerp>
    <data>

<!-- Send New Mail view -->

        <record model="ir.ui.view" id="crm_send_new_mail_view">
            <field name="name">crm.new.send.mail.form</field>
            <field name="model">crm.send.mail</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Send New Mail" col="2">
                    <field name="email_from" />
                    <field name="email_to"  />
                    <field name="email_cc" />
                    <field name="subject" />
                    <notebook colspan="2">
                        <page string="Message">
                            <field name="text" nolabel="1" colspan="4"/>
                        </page>
                        <page string="Attachments">
                            <field name="doc1" filename="doc1_fname"/>
                            <field name="doc1_fname"/>
                            <field name="doc2" filename="doc2_fname" />
                            <field name="doc2_fname"/>
                            <field name="doc3" filename="doc3_fname" />
                            <field name="doc3_fname"/>
                        </page>
                    </notebook>
                    <group colspan="2" col="4" >
                        <field name="state" />
                        <button name="action_cancel" string="_Cancel" icon="gtk-cancel" special="cancel" />
                        <button name="action_send" type="object" string="_Send" icon="gtk-go-forward" />
                    </group>
                </form>
            </field>
        </record>

<!-- Send New Mail action -->

        <record model="ir.actions.act_window" id="action_crm_send_mail">
            <field name="name">Send New Mail</field>
            <field name="res_model">crm.send.mail</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_send_new_mail_view"/>
            <field name="target">new</field>
        </record>


    <!-- Reply to Mail view -->

        <record model="ir.ui.view" id="crm_reply_mail_view">
            <field name="name">crm.mail.reply.form</field>
            <field name="model">crm.send.mail</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Reply to last Mail" col="2">
                    <field name="email_from" />
                    <field name="email_to" />
                    <field name="email_cc" />
                    <field name="subject" />
                    <field name="doc1" />
                    <field name="doc2" />
                    <field name="doc3" />
                    <separator string="" colspan="4"/>
                    <field name="text" nolabel="1" colspan="4"/>
                    <separator string=" " colspan="4"/>
                    <group colspan="4" col="3" >
                        <label string=" " />
                        <button name="action_cancel" string="_Cancel" icon="gtk-cancel" special="cancel" />
                        <button name="action_send" type="object" string="_Send Reply" icon="gtk-go-forward" />
                    </group>
                </form>
            </field>
        </record>

<!-- Reply to Mail action -->

        <record model="ir.actions.act_window" id="action_crm_reply_mail">
            <field name="name">Reply to last Mail</field>
            <field name="res_model">crm.send.mail</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_reply_mail_view"/>
            <field name="target">new</field>
        </record>

    </data>
</openerp>
<commit_msg>[FIX] crm: Hide the filename field, not needed for the end user<commit_after><?xml version="1.0"?>
<openerp>
    <data>

<!-- Send New Mail view -->

        <record model="ir.ui.view" id="crm_send_new_mail_view">
            <field name="name">crm.new.send.mail.form</field>
            <field name="model">crm.send.mail</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Send New Mail" col="2">
                    <field name="email_from" />
                    <field name="email_to"  />
                    <field name="email_cc" />
                    <field name="subject" />
                    <notebook colspan="2">
                        <page string="Message">
                            <field name="text" nolabel="1" colspan="4"/>
                        </page>
                        <page string="Attachments">
                            <field name="doc1" filename="doc1_fname"/>
                            <field name="doc1_fname" invisible="1" />
                            <field name="doc2" filename="doc2_fname" />
                            <field name="doc2_fname" invisible="1" />
                            <field name="doc3" filename="doc3_fname" />
                            <field name="doc3_fname" invisible="1" />
                        </page>
                    </notebook>
                    <group colspan="2" col="4" >
                        <field name="state" />
                        <button name="action_cancel" string="_Cancel" icon="gtk-cancel" special="cancel" />
                        <button name="action_send" type="object" string="_Send" icon="gtk-go-forward" />
                    </group>
                </form>
            </field>
        </record>

<!-- Send New Mail action -->

        <record model="ir.actions.act_window" id="action_crm_send_mail">
            <field name="name">Send New Mail</field>
            <field name="res_model">crm.send.mail</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_send_new_mail_view"/>
            <field name="target">new</field>
        </record>


    <!-- Reply to Mail view -->

        <record model="ir.ui.view" id="crm_reply_mail_view">
            <field name="name">crm.mail.reply.form</field>
            <field name="model">crm.send.mail</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Reply to last Mail" col="2">
                    <field name="email_from" />
                    <field name="email_to" />
                    <field name="email_cc" />
                    <field name="subject" />
                    <field name="doc1" />
                    <field name="doc2" />
                    <field name="doc3" />
                    <separator string="" colspan="4"/>
                    <field name="text" nolabel="1" colspan="4"/>
                    <separator string=" " colspan="4"/>
                    <group colspan="4" col="3" >
                        <label string=" " />
                        <button name="action_cancel" string="_Cancel" icon="gtk-cancel" special="cancel" />
                        <button name="action_send" type="object" string="_Send Reply" icon="gtk-go-forward" />
                    </group>
                </form>
            </field>
        </record>

<!-- Reply to Mail action -->

        <record model="ir.actions.act_window" id="action_crm_reply_mail">
            <field name="name">Reply to last Mail</field>
            <field name="res_model">crm.send.mail</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_reply_mail_view"/>
            <field name="target">new</field>
        </record>

    </data>
</openerp>

{'fraction_non_alphanumeric': 0.15094098066828832, 'fraction_numerical': 0.007297401101011394, 'mean_word_length': 1.4535175879396984, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 2, '>': 195, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1775651', 'n_tokens_mistral': 2187, 'n_tokens_neox': 2070, 'n_words': 404}