<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="share_step0_form" model="ir.ui.view">
            <field name="name">share.step0.form</field>
            <field name="model">share.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Sharing: preparation" version="7.0">
                    <header>
                        <button name="go_step_1" string="Next" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </header>
                    <separator
                        string="Please select the action that opens the screen containing the data you want to share."/>
                    <group>
                        <field name="action_id"/>
                        <label colspan="2"
                            string="Optionally, you may specify an additional domain restriction that will be applied to the shared data."/>
                        <field name="domain"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="share_step1_form" model="ir.ui.view">
            <field name="name">share.step1.form</field>
            <field name="model">share.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form version="7.0">
                    <header>
                        <button name="go_step_2" string="Share" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </header>
                    <group>
                        <field name="user_type" invisible="1"/>
                        <field name="invite" invisible="1"/>
                    </group>
                    <group>
                        <group colspan="4" name="emails_group" attrs="{'invisible':['|', ('user_type', '!=', 'emails'), ('invite', '=', True)]}"
                            string="Share with these People (one email per line)">
                            <field nolabel="1" name="new_users" attrs="{'required':[('user_type','=','emails'), ('invite', '!=', True)]}"/>
                        </group>
                        <group colspan="4" name="email_lines" attrs="{'invisible':[('invite', '!=', True)]}"
                            string="Share with these People (one email per line)">
                            <field name="email_1"/>
                            <field name="email_2"/>
                            <field name="email_3"/>
                        </group>
                        <group colspan="4" attrs="{'invisible':[('user_type', '=', 'embedded')]}"
                            string="Include an Optional Personal Message">
                            <field name="message" colspan="2" nolabel="1"/>
                        </group>
                        <group attrs="{'invisible':[('invite', '=', True)]}" string="Sharing Options">
                            <field name="name"/>
                            <field name="access_mode"/>
                        </group>
                    </group>
                </form>
            </field>
        </record>

        <record id="share_step2_form" model="ir.ui.view">
            <field name="name">share.step2.form</field>
            <field name="model">share.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Access granted!" version="7.0">
                    <header>
                        <field name="user_type" invisible="1"/>
                        <field name="access_mode" invisible="1"/>
                    </header><commit_msg>[IMP] Invite/Share: hide email_lines when workign with (portal) groups.<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="share_step0_form" model="ir.ui.view">
            <field name="name">share.step0.form</field>
            <field name="model">share.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Sharing: preparation" version="7.0">
                    <header>
                        <button name="go_step_1" string="Next" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </header>
                    <separator
                        string="Please select the action that opens the screen containing the data you want to share."/>
                    <group>
                        <field name="action_id"/>
                        <label colspan="2"
                            string="Optionally, you may specify an additional domain restriction that will be applied to the shared data."/>
                        <field name="domain"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="share_step1_form" model="ir.ui.view">
            <field name="name">share.step1.form</field>
            <field name="model">share.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form version="7.0">
                    <header>
                        <button name="go_step_2" string="Share" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </header>
                    <group>
                        <field name="user_type" invisible="1"/>
                        <field name="invite" invisible="1"/>
                    </group>
                    <group>
                        <group colspan="4" name="emails_group" attrs="{'invisible':['|', ('user_type', '!=', 'emails'), ('invite', '=', True)]}"
                            string="Share with these People (one email per line)">
                            <field nolabel="1" name="new_users" attrs="{'required':[('user_type','=','emails'), ('invite', '!=', True)]}"/>
                        </group>
                        <group colspan="4" name="email_lines" attrs="{'invisible':['|', ('invite', '!=', True), ('user_type', '!=', 'emails')]}"
                            string="Share with these People (one email per line)">
                            <field name="email_1"/>
                            <field name="email_2"/>
                            <field name="email_3"/>
                        </group>
                        <group colspan="4" attrs="{'invisible':[('user_type', '=', 'embedded')]}"
                            string="Include an Optional Personal Message">
                            <field name="message" colspan="2" nolabel="1"/>
                        </group>
                        <group attrs="{'invisible':[('invite', '=', True)]}" string="Sharing Options">
                            <field name="name"/>
                            <field name="access_mode"/>
                        </group>
                    </group>
                </form>
            </field>
        </record>

        <record id="share_step2_form" model="ir.ui.view">
            <field name="name">share.step2.form</field>
            <field name="model">share.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Access granted!" version="7.0">
                    <header>
                        <field name="user_type" invisible="1"/>
                        <field name="access_mode" invisible="1"/>
                    </header>
{'fraction_non_alphanumeric': 0.1492159838138594, 'fraction_numerical': 0.00784016186140617, 'mean_word_length': 1.3573770491803279, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 2, '>': 153, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '4497670', 'n_tokens_mistral': 2006, 'n_tokens_neox': 1907, 'n_words': 422}