<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" icon="gtk-go-forward"/>
                        <button special="cancel" string="Cancel" icon='gtk-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" icon="gtk-go-forward"/>
                        <button special="cancel" string="Cancel" icon='gtk-cancel'/>
                    </header>
                    <field name="user_type" invisible="1"/>
                    <field name="invite" invisible="1"/>
                    <group>
                        <group name="emails_group" attrs="{'invisible':['|', ('user_type', '!=', 'emails'), ('invite', '=', True)]}" string="Share with these People (one e-mail per line)">
                            <field colspan="2" nolabel="1" name="new_users" attrs="{'required':[('user_type','=','emails'), ('invite', '!=', True)]}"/>
                        </group>
                        <group name="email_lines" attrs="{'invisible':[('invite', '!=', True)]}" string="Share with these People (one e-mail per line)">
                            <field name="email_1"/>
                            <field name="email_2"/>
                            <field name="email_3"/>
                        </group>
                        <group 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>
                        <button special="cancel" string="Close" icon='gtk-ok'/>
                        <field name="user_type" invisible="1"/>
                        <field name="access_mode" invisible="1"/>
                    </header>
                    <group attrs="{'invisible':[('user_type','=','embedded')]}">
                        <separator string="An e-mail notification with instructions has been sent to the following people:"/>
                        <field name="result_line_ids" nolabel="1" mode="tree">
                            <tree string="Summary">
                                <field name="login"/>
                            </tree>
                            <form string="Access info" version="7.0">
                                <group>
                                    <field name="login"/>
                                </group>
                            </form>
                        </field>
                    </group>
                    <group colspan="4" col="1" attrs="{'invisible':[('user_type','!=','embedded')]}">
                        <separator string="Use this Link"/>
                        <field name="embed_url"/>
                        <separator string="Or insert the following code where you want to embed your documents"/>
                        <group string="Options">
                            <field name="embed_option_title" on_change="onchange_embed_options(embed_option_title, embed_option_search)"/>
                            <field name="embed_option_search" on_change="onchange_embed_options(embed_option_title, embed_option_search)" attrs="{'invisible':[('access_mode','=','readonly')]}"/>
                            <field name="embed_code"/>
                        </group>
                    </group>

                </form>
            </field>
        </record>

        <!--  action for manual launch from menuitem. context may contain:
                    - 'action_id' (id of action)
                    - 'domain' (string expression for full domain to apply as sent to server, 
                               with dynamic data like 'uid' replaced by actual value (i.e. after eval)!)
         -->
        <record id="action_share_wizard" model="ir.actions.act_window">
            <field name="name">Share Wizard</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">share.wizard</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="share_step0_form"/>
            <field name="target">new</field>
        </record>

        <!--  action for direct launch from client widget with context providing:
                    - 'action_id' (id of action)
                    - 'domain' (string expression for full domain to apply as sent to server, 
                               with dynamic data like 'uid' replaced by actual value (i.e. after eval)!)
         -->
        <record id="action_share_wizard_step1" model="ir.actions.act_window">
            <field name="name">Share your documents</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">share.wizard</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="share_step1_form"/>
            <field name="target">new</field>
            <field name="context">False</field>
        </record>

    </data>
</openerp>
<commit_msg>[IMP] share: remove cancel button and improved view of wizard.<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" icon="gtk-go-forward" class="oe_form_button_active_flow"/>
                    </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" icon="gtk-go-forward" class="oe_form_button_active_flow"/>
                    </header>
                    <field name="user_type" invisible="1"/>
                    <field name="invite" invisible="1"/>
                    <group>
                        <group name="emails_group" attrs="{'invisible':['|', ('user_type', '!=', 'emails'), ('invite', '=', True)]}" string="Share with these People (one e-mail per line)">
                            <field colspan="2" nolabel="1" name="new_users" attrs="{'required':[('user_type','=','emails'), ('invite', '!=', True)]}"/>
                        </group>
                        <group name="email_lines" attrs="{'invisible':[('invite', '!=', True)]}" string="Share with these People (one e-mail per line)">
                            <field name="email_1"/>
                            <field name="email_2"/>
                            <field name="email_3"/>
                        </group>
                        <group 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>
                    <group attrs="{'invisible':[('user_type','=','embedded')]}">
                        <separator string="An e-mail notification with instructions has been sent to the following people:"/>
                        <field name="result_line_ids" nolabel="1" mode="tree">
                            <tree string="Summary">
                                <field name="login"/>
                            </tree>
                            <form string="Access info" version="7.0">
                                <group>
                                    <field name="login"/>
                                </group>
                            </form>
                        </field>
                    </group>
                    <group colspan="4" col="1" attrs="{'invisible':[('user_type','!=','embedded')]}">
                        <separator string="Use this Link"/>
                        <field name="embed_url"/>
                        <separator string="Or insert the following code where you want to embed your documents"/>
                        <group string="Options">
                            <field name="embed_option_title" on_change="onchange_embed_options(embed_option_title, embed_option_search)"/>
                            <field name="embed_option_search" on_change="onchange_embed_options(embed_option_title, embed_option_search)" attrs="{'invisible':[('access_mode','=','readonly')]}"/>
                            <field name="embed_code"/>
                        </group>
                    </group>

                </form>
            </field>
        </record>

        <!--  action for manual launch from menuitem. context may contain:
                    - 'action_id' (id of action)
                    - 'domain' (string expression for full domain to apply as sent to server, 
                               with dynamic data like 'uid' replaced by actual value (i.e. after eval)!)
         -->
        <record id="action_share_wizard" model="ir.actions.act_window">
            <field name="name">Share Wizard</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">share.wizard</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="share_step0_form"/>
            <field name="target">new</field>
        </record>

        <!--  action for direct launch from client widget with context providing:
                    - 'action_id' (id of action)
                    - 'domain' (string expression for full domain to apply as sent to server, 
                               with dynamic data like 'uid' replaced by actual value (i.e. after eval)!)
         -->
        <record id="action_share_wizard_step1" model="ir.actions.act_window">
            <field name="name">Share your documents</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">share.wizard</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="share_step1_form"/>
            <field name="target">new</field>
            <field name="context">False</field>
        </record>

    </data>
</openerp>

{'fraction_non_alphanumeric': 0.14110691644704038, 'fraction_numerical': 0.005271030700192321, 'mean_word_length': 1.5174825174825175, 'pattern_counts': {'":': 0, '<': 272, '<?xml version=': 2, '>': 272, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1071004', 'n_tokens_mistral': 3585, 'n_tokens_neox': 3432, 'n_words': 799}