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

<!-- Idea Category Form View -->

    <menuitem name="Tools" id="base.menu_tools" icon="STOCK_PREFERENCES" sequence="15"/>
        <record model="ir.ui.view" id="view_idea_category_form">
            <field name="name">idea.category.form</field>
            <field name="model">idea.category</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Category of ideas">
                    <field name="name" select="1"/>
                    <field name="parent_id" select="1"/>
                    <newline/>
                    <separator string="Summary" colspan="4"/>
                    <field name="summary" colspan="4" nolabel="1"/>
                </form>
            </field>
        </record>

<!-- Idea Category Tree View -->

        <record model="ir.ui.view" id="view_idea_category_tree">
            <field name="name">idea.category.tree</field>
            <field name="model">idea.category</field>
            <field name="type">tree</field>
            <field name="field_parent">child_ids</field>
            <field name="arch" type="xml">
                <tree string="Category of ideas">
                    <field name="name"/>
                </tree>
            </field>
        </record>

<!-- Idea Category Action -->

    <record model="ir.actions.act_window" id="action_idea_category">
        <field name="name">Categories</field>
        <field name="res_model">idea.category</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem name="Configuration" parent="base.menu_tools"
         id="base.menu_lunch_survey_root" sequence="6"/>

    <menuitem name="Ideas" parent="base.menu_lunch_survey_root" id="menu_ideas"/>

    <menuitem name="Categories" parent="menu_ideas"
    	id="menu_idea_category" action="action_idea_category" />

<!-- Idea Category Action -->

    <record model="ir.actions.act_window" id="action_idea_category_tree">
        <field name="name">Ideas by Categories</field>
        <field name="res_model">idea.category</field>
        <field name="view_type">tree</field>
        <field name="domain">[('parent_id','=',False)]</field>
    </record>

    <menuitem name="Ideas" parent="base.menu_tools" id="menu_ideas1" sequence="4"/>

    <menuitem
        name="Ideas by Categories" parent="menu_ideas1"
        id="menu_idea_category_tree"
        action="action_idea_category_tree"/>

<!-- Oepn Ideas Action  -->

    <record model="ir.actions.act_window" id="action_idea_idea_categ_open">
        <field name="name">Open Ideas</field>
        <field name="res_model">idea.idea</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="domain">[('state','=','open'),('category_id','child_of',[active_id])]</field>
    </record>

    <record model="ir.values" id="action_idea_idea_categ_open_val">
        <field name="key2" eval=" 'tree_but_open'" />
        <field name="model" eval="'idea.category'" />
        <field name="name">Ideas</field>
        <field name="value" eval="'ir.actions.act_window,'+str(action_idea_idea_categ_open)" />
        <field name="object" eval="True" />
    </record>

<!-- Idea statistics Form View -->

    <record model="ir.ui.view" id="view_idea_stat_form">
        <field name="name">idea.stat.form</field>
        <field name="model">idea.stat</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="stat">
                <field name="avgscore" />
                <field name="nbr_comments" />
                <field name="nbr_votes" />
            </form>
        </field>
    </record>

<!--Vote For Idea Tree View -->

    <record model="ir.ui.view" id="view_idea_vote_tree">
        <field name="name">idea.vote.tree</field>
        <field name="model">idea.vote</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
        <tree string="Votes">
            <field name="idea_id"/>
            <field name="user_id"/>
            <field name="score" />
        </tree>
        </field>
    </record>

<!--Vote For Idea Form View  -->

    <record model="ir.ui.view" id="view_idea_vote_form">
        <field name="name">idea.vote.form</field>
        <field name="model">idea.vote</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
        <form string="Votes">
            <field name="idea_id" select="1" />
            <field name="user_id" select="1" />
            <field name="score"/>
        </form>
        </field>
    </record>
    
<!-- Search view for Idea vote -->

    <record model="ir.ui.view" id="view_idea_vote_search">
        <field name="name">idea.vote.search</field>
        <field name="model">idea.vote</field>
        <field name="type">search</field>
        <field name="arch" type="xml">
	        <search string="Ideas vote">
	        	<group col="10" colspan="4">
		            <field name="idea_id" widget="selection"/>
		            <field name="user_id" widget="selection"/>
				</group>
				<newline/>
	            <group expand="1" string="Group By..." colspan="14">
	                <filter string="Idea" icon="terp-crm" domain="[]" context="{'group_by':'idea_id'}"/>
	                <filter string="User" name="user" icon="terp-partner" domain="[]" context="{'group_by':'user_id'}"/>
	            </group>
	        </search>
        </field>
    </record>

<!-- New Idea Form View -->

    <record model="ir.ui.view" id="view_idea_idea_form">
        <field name="name">idea.idea.form</field>
        <field name="model">idea.idea</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
        <form string="New Idea">
            <notebook>
                <page string="Idea">
                    <field name="title" select="1" />
                    <field name="category_id" select="1"/>
                    <field name="date" />
                    <field name="user_id" select="1"/>
                    <field name="vote_avg" widget="progressbar"/>
                    <field name="vote_user"/>
                    <separator string="Description" colspan="4"/>
                    <field name="description" colspan="4" widget="text_wiki" nolabel="1"/>
                    <field name="state"/>
                    <group colspan="2" col="3">
                        <button name="idea_open" string="Open" states="draft" icon="gtk-go-forward"/>
                        <button name="idea_close" string="Close" states="open" icon="gtk-close"/>
                        <button name="idea_cancel" string="Cancel" states="open"  icon="gtk-cancel"/>
                    </group>
                </page>
                <page string="Comments">
                    <field name="comment_ids" nolabel="1" colspan="4">
                        <form string="Comment">
                        	<field name="user_id" colspan="2"/>
                            <separator string="User comment" colspan="4"/>
                            <field name="content" nolabel="1" colspan="4"/>
                        </form>
                    </field><commit_msg>[IMP]: idea: Minor Improvement add groups in close and cancel button<commit_after><?xml version="1.0"?>
<openerp>
    <data>

<!-- Idea Category Form View -->

    <menuitem name="Tools" id="base.menu_tools" icon="STOCK_PREFERENCES" sequence="15"/>
        <record model="ir.ui.view" id="view_idea_category_form">
            <field name="name">idea.category.form</field>
            <field name="model">idea.category</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Category of ideas">
                    <field name="name" select="1"/>
                    <field name="parent_id" select="1"/>
                    <newline/>
                    <separator string="Summary" colspan="4"/>
                    <field name="summary" colspan="4" nolabel="1"/>
                </form>
            </field>
        </record>

<!-- Idea Category Tree View -->

        <record model="ir.ui.view" id="view_idea_category_tree">
            <field name="name">idea.category.tree</field>
            <field name="model">idea.category</field>
            <field name="type">tree</field>
            <field name="field_parent">child_ids</field>
            <field name="arch" type="xml">
                <tree string="Category of ideas">
                    <field name="name"/>
                </tree>
            </field>
        </record>

<!-- Idea Category Action -->

    <record model="ir.actions.act_window" id="action_idea_category">
        <field name="name">Categories</field>
        <field name="res_model">idea.category</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem name="Configuration" parent="base.menu_tools"
         id="base.menu_lunch_survey_root" sequence="6"/>

    <menuitem name="Ideas" parent="base.menu_lunch_survey_root" id="menu_ideas"/>

    <menuitem name="Categories" parent="menu_ideas"
    	id="menu_idea_category" action="action_idea_category" />

<!-- Idea Category Action -->

    <record model="ir.actions.act_window" id="action_idea_category_tree">
        <field name="name">Ideas by Categories</field>
        <field name="res_model">idea.category</field>
        <field name="view_type">tree</field>
        <field name="domain">[('parent_id','=',False)]</field>
    </record>

    <menuitem name="Ideas" parent="base.menu_tools" id="menu_ideas1" sequence="4"/>

    <menuitem
        name="Ideas by Categories" parent="menu_ideas1"
        id="menu_idea_category_tree"
        action="action_idea_category_tree"/>

<!-- Oepn Ideas Action  -->

    <record model="ir.actions.act_window" id="action_idea_idea_categ_open">
        <field name="name">Open Ideas</field>
        <field name="res_model">idea.idea</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="domain">[('state','=','open'),('category_id','child_of',[active_id])]</field>
    </record>

    <record model="ir.values" id="action_idea_idea_categ_open_val">
        <field name="key2" eval=" 'tree_but_open'" />
        <field name="model" eval="'idea.category'" />
        <field name="name">Ideas</field>
        <field name="value" eval="'ir.actions.act_window,'+str(action_idea_idea_categ_open)" />
        <field name="object" eval="True" />
    </record>

<!-- Idea statistics Form View -->

    <record model="ir.ui.view" id="view_idea_stat_form">
        <field name="name">idea.stat.form</field>
        <field name="model">idea.stat</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="stat">
                <field name="avgscore" />
                <field name="nbr_comments" />
                <field name="nbr_votes" />
            </form>
        </field>
    </record>

<!--Vote For Idea Tree View -->

    <record model="ir.ui.view" id="view_idea_vote_tree">
        <field name="name">idea.vote.tree</field>
        <field name="model">idea.vote</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
        <tree string="Votes">
            <field name="idea_id"/>
            <field name="user_id"/>
            <field name="score" />
        </tree>
        </field>
    </record>

<!--Vote For Idea Form View  -->

    <record model="ir.ui.view" id="view_idea_vote_form">
        <field name="name">idea.vote.form</field>
        <field name="model">idea.vote</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
        <form string="Votes">
            <field name="idea_id" select="1" />
            <field name="user_id" select="1" />
            <field name="score"/>
        </form>
        </field>
    </record>
    
<!-- Search view for Idea vote -->

    <record model="ir.ui.view" id="view_idea_vote_search">
        <field name="name">idea.vote.search</field>
        <field name="model">idea.vote</field>
        <field name="type">search</field>
        <field name="arch" type="xml">
	        <search string="Ideas vote">
	        	<group col="10" colspan="4">
		            <field name="idea_id" widget="selection"/>
		            <field name="user_id" widget="selection"/>
				</group>
				<newline/>
	            <group expand="1" string="Group By..." colspan="14">
	                <filter string="Idea" icon="terp-crm" domain="[]" context="{'group_by':'idea_id'}"/>
	                <filter string="User" name="user" icon="terp-partner" domain="[]" context="{'group_by':'user_id'}"/>
	            </group>
	        </search>
        </field>
    </record>

<!-- New Idea Form View -->

    <record model="ir.ui.view" id="view_idea_idea_form">
        <field name="name">idea.idea.form</field>
        <field name="model">idea.idea</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
        <form string="New Idea">
            <notebook>
                <page string="Idea">
                    <field name="title" select="1" />
                    <field name="category_id" select="1"/>
                    <field name="date" />
                    <field name="user_id" select="1"/>
                    <field name="vote_avg" widget="progressbar"/>
                    <field name="vote_user"/>
                    <separator string="Description" colspan="4"/>
                    <field name="description" colspan="4" widget="text_wiki" nolabel="1"/>
                    <field name="state"/>
                    <group colspan="2" col="3">
                        <button name="idea_open" string="Open" states="draft" icon="gtk-go-forward"/>
                        <button name="idea_close" string="Close" states="open" icon="gtk-close" groups="base.group_extended"/>
                        <button name="idea_cancel" string="Cancel" states="open"  icon="gtk-cancel" groups="base.group_extended"/>
                    </group>
                </page>
                <page string="Comments">
                    <field name="comment_ids" nolabel="1" colspan="4">
                        <form string="Comment">
                        	<field name="user_id" colspan="2"/>
                            <separator string="User comment" colspan="4"/>
                            <field name="content" nolabel="1" colspan="4"/>
                        </form>
                    </field>
{'fraction_non_alphanumeric': 0.1713393523861245, 'fraction_numerical': 0.004887651890570905, 'mean_word_length': 2.171582346609257, 'pattern_counts': {'":': 0, '<': 385, '<?xml version=': 2, '>': 385, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '1173235', 'n_tokens_mistral': 4462, 'n_tokens_neox': 4255, 'n_words': 797}