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

        <!-- Top menu item -->
        <menuitem name="Project"
            id="base.menu_main_pm"
            groups="group_project_manager,group_project_user"
            sequence="90"/>

        <menuitem id="menu_project_management" name="Project" parent="base.menu_main_pm" sequence="1"/>
        <menuitem id="base.menu_definitions" name="Configuration" parent="base.menu_main_pm" sequence="60"/>

        <act_window
            context="{'search_default_project_id': [active_id], 'default_project_id': active_id}"
            id="act_project_project_2_project_task_all"
            name="Tasks"
            res_model="project.task"
            src_model="project.project"
            view_mode="kanban,tree,form,calendar,graph"
            view_type="form"/>

        <!-- Project Read/Unread actions -->
        <record id="actions_server_project_unread" model="ir.actions.server">
            <field name="name">Mark unread</field>
            <field name="condition">True</field>
            <field name="type">ir.actions.server</field>
            <field name="model_id" ref="model_project_project"/>
            <field name="state">code</field>
            <field name="code">self.message_check_and_set_unread(cr, uid, context.get('active_ids'), context=context)</field>
        </record>
        <record id="action_project_unread" model="ir.values">
            <field name="name">action_project_unread</field>
            <field name="action_id" ref="actions_server_project_unread"/>
            <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_unread'))"/>
            <field name="key">action</field>
            <field name="model_id" ref="model_project_project"/>
            <field name="model">project.project</field>
            <field name="key2">client_action_multi</field>
        </record>

        <record id="actions_server_project_read" model="ir.actions.server">
            <field name="name">Mark read</field>
            <field name="condition">True</field>
            <field name="type">ir.actions.server</field>
            <field name="model_id" ref="model_project_project"/>
            <field name="state">code</field>
            <field name="code">self.message_check_and_set_read(cr, uid, context.get('active_ids'), context=context)</field>
        </record>
        <record id="action_project_read" model="ir.values">
            <field name="name">action_project_read</field>
            <field name="action_id" ref="actions_server_project_read"/>
            <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_read'))"/>
            <field name="key">action</field>
            <field name="model_id" ref="model_project_project"/>
            <field name="model">project.project</field>
            <field name="key2">client_action_multi</field>
        </record>

        <!-- Project -->
        <record id="edit_project" model="ir.ui.view">
            <field name="name">project.project.form</field>
            <field name="model">project.project</field>
            <field name="arch" type="xml">
                <form string="Project" version="7.0">
                <header>
                    <button name="set_done" string="Done" type="object" states="open,pending"/>
                    <button name="set_open" string="Re-open project" type="object" states="pending" class="oe_highlight"/>
                    <button name="set_open" string="Re-open project" type="object" states="cancelled,close"/>
                    <button name="set_pending" string="Pending" type="object" states="open"/>
                    <button name="set_template" string="Set as Template" type="object" states="open"/>
                    <button string="New Project Based on Template" name="duplicate_template"  type="object" states="template" context="{'parent_id':parent_id}" class="oe_highlight"/>
                    <button name="reset_project" string="Reset as Project" type="object" states="template" class="oe_highlight"/>
                    <button name="set_cancel" string="Cancel" type="object" states="open,pending"/>
                    <field name="state" widget="statusbar" statusbar_visible="open,close" statusbar_colors='{"pending":"blue"}' readonly="1"/>
                </header>
                <sheet string="Project">
                    <field name="analytic_account_id" invisible="1" required="0"/>
                    <div class="oe_title">
                        <label for="name" class="oe_edit_only" string="Project Name"/>
                        <h1>
                            <field name="name" string="Project Name"/>
                        </h1>
                        <div name="options_active">
                            <field name="use_tasks" class="oe_inline"/>
                            <label for="use_tasks"/>
                        </div>
                    </div>
                    <div class="oe_right oe_button_box" name="buttons">
                        <button name="%(act_project_project_2_project_task_all)d" string="Tasks"
                            type="action" attrs="{'invisible':[('use_tasks','=', 0)]}"/>
                        <button name="%(base.action_attachment)d" string="Documents" type="action"/>
                    </div>
                    <group>
                        <group>
                            <field name="user_id" string="Project Manager" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/>
                            <field name="partner_id" string="Contact" on_change="onchange_partner_id(partner_id)"/>
                        </group>
                        <group>
                            <field name="privacy_visibility"/>
                            <field name="analytic_account_id" readonly="1" required="0"/>
                        </group>
                    </group>
                    <notebook>
                        <page string="Team" name="team">
                            <field colspan="4" name="members" widget="many2many_kanban">
                                <kanban quick_create="true" create="false">
                                    <field name="name"/>
                                    <templates>
                                        <t t-name="kanban-box">
                                            <div style="position: relative">
                                                <a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block">X</a>
                                                <div class="oe_module_vignette">
                                                    <div class="oe_module_desc">
                                                        <field name="name"/>
                                                    </div>
                                                </div>
                                            </div>
                                        </t>
                                    </templates>
                                </kanban>
                            </field>
                        </page>
                        <page string="Other Info">
                            <group string="Email Interface" colspan="2">
                                <div attrs="{'invisible': [('alias_domain', '=', False)]}">
                                    <field name="alias_id" invisible="1" required="0"/>
                                    <label for="alias_name" class="oe_edit_only "/>
                                    <field name="alias_name" class="oe_inline" attrs="{'required': [('alias_id', '!=', False)]}"/>@<field name="alias_domain" class="oe_inline"/>
                                </div>
                            </group>
                            <group>
                                <group string="Administration" groups="project.group_time_work_estimation_tasks">
                                    <field name="planned_hours" widget="float_time"/>
                                    <field name="effective_hours" widget="float_time"/>
                                    <field name="resource_calendar_id"/>
                                </group>
                                <group string="Miscellaneous" name="misc">
                                    <field name="date"/>
                                    <field name="parent_id" domain="[('id','!=',analytic_account_id)]" context="{'current_model': 'project.project'}"/>
                                    <field name="priority"/>
                                    <field name="active" attrs="{'invisible':[('state','in',['open', 'pending', 'template'])]}"/>

                                    <field name="currency_id" groups="base.group_multi_currency" required="1"/>
                                    <field name="parent_id" domain="[('id','!=',analytic_account_id)]" context="{'current_model': 'project.project'}"/>
                                </group>
                            </group>
                        </page>
                        <page string="Tasks Stages">
                             <field name="type_ids"/>
                        </page>
                    </notebook>
                </sheet>
                <div class="oe_chatter">
                    <field name="message_ids" widget="mail_thread"/>
                    <field name="message_follower_ids" widget="mail_followers"/>
                </div>
                </form>
            </field>
        </record>

       <record id="view_project_project_filter" model="ir.ui.view">
            <field name="name">project.project.select</field><commit_msg>[FIX]project:remove parent analytic account field which is 2 times in form view<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <!-- Top menu item -->
        <menuitem name="Project"
            id="base.menu_main_pm"
            groups="group_project_manager,group_project_user"
            sequence="90"/>

        <menuitem id="menu_project_management" name="Project" parent="base.menu_main_pm" sequence="1"/>
        <menuitem id="base.menu_definitions" name="Configuration" parent="base.menu_main_pm" sequence="60"/>

        <act_window
            context="{'search_default_project_id': [active_id], 'default_project_id': active_id}"
            id="act_project_project_2_project_task_all"
            name="Tasks"
            res_model="project.task"
            src_model="project.project"
            view_mode="kanban,tree,form,calendar,graph"
            view_type="form"/>

        <!-- Project Read/Unread actions -->
        <record id="actions_server_project_unread" model="ir.actions.server">
            <field name="name">Mark unread</field>
            <field name="condition">True</field>
            <field name="type">ir.actions.server</field>
            <field name="model_id" ref="model_project_project"/>
            <field name="state">code</field>
            <field name="code">self.message_check_and_set_unread(cr, uid, context.get('active_ids'), context=context)</field>
        </record>
        <record id="action_project_unread" model="ir.values">
            <field name="name">action_project_unread</field>
            <field name="action_id" ref="actions_server_project_unread"/>
            <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_unread'))"/>
            <field name="key">action</field>
            <field name="model_id" ref="model_project_project"/>
            <field name="model">project.project</field>
            <field name="key2">client_action_multi</field>
        </record>

        <record id="actions_server_project_read" model="ir.actions.server">
            <field name="name">Mark read</field>
            <field name="condition">True</field>
            <field name="type">ir.actions.server</field>
            <field name="model_id" ref="model_project_project"/>
            <field name="state">code</field>
            <field name="code">self.message_check_and_set_read(cr, uid, context.get('active_ids'), context=context)</field>
        </record>
        <record id="action_project_read" model="ir.values">
            <field name="name">action_project_read</field>
            <field name="action_id" ref="actions_server_project_read"/>
            <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_project_read'))"/>
            <field name="key">action</field>
            <field name="model_id" ref="model_project_project"/>
            <field name="model">project.project</field>
            <field name="key2">client_action_multi</field>
        </record>

        <!-- Project -->
        <record id="edit_project" model="ir.ui.view">
            <field name="name">project.project.form</field>
            <field name="model">project.project</field>
            <field name="arch" type="xml">
                <form string="Project" version="7.0">
                <header>
                    <button name="set_done" string="Done" type="object" states="open,pending"/>
                    <button name="set_open" string="Re-open project" type="object" states="pending" class="oe_highlight"/>
                    <button name="set_open" string="Re-open project" type="object" states="cancelled,close"/>
                    <button name="set_pending" string="Pending" type="object" states="open"/>
                    <button name="set_template" string="Set as Template" type="object" states="open"/>
                    <button string="New Project Based on Template" name="duplicate_template"  type="object" states="template" context="{'parent_id':parent_id}" class="oe_highlight"/>
                    <button name="reset_project" string="Reset as Project" type="object" states="template" class="oe_highlight"/>
                    <button name="set_cancel" string="Cancel" type="object" states="open,pending"/>
                    <field name="state" widget="statusbar" statusbar_visible="open,close" statusbar_colors='{"pending":"blue"}' readonly="1"/>
                </header>
                <sheet string="Project">
                    <field name="analytic_account_id" invisible="1" required="0"/>
                    <div class="oe_title">
                        <label for="name" class="oe_edit_only" string="Project Name"/>
                        <h1>
                            <field name="name" string="Project Name"/>
                        </h1>
                        <div name="options_active">
                            <field name="use_tasks" class="oe_inline"/>
                            <label for="use_tasks"/>
                        </div>
                    </div>
                    <div class="oe_right oe_button_box" name="buttons">
                        <button name="%(act_project_project_2_project_task_all)d" string="Tasks"
                            type="action" attrs="{'invisible':[('use_tasks','=', 0)]}"/>
                        <button name="%(base.action_attachment)d" string="Documents" type="action"/>
                    </div>
                    <group>
                        <group>
                            <field name="user_id" string="Project Manager" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/>
                            <field name="partner_id" string="Contact" on_change="onchange_partner_id(partner_id)"/>
                        </group>
                        <group>
                            <field name="privacy_visibility"/>
                            <field name="analytic_account_id" readonly="1" required="0"/>
                        </group>
                    </group>
                    <notebook>
                        <page string="Team" name="team">
                            <field colspan="4" name="members" widget="many2many_kanban">
                                <kanban quick_create="true" create="false">
                                    <field name="name"/>
                                    <templates>
                                        <t t-name="kanban-box">
                                            <div style="position: relative">
                                                <a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block">X</a>
                                                <div class="oe_module_vignette">
                                                    <div class="oe_module_desc">
                                                        <field name="name"/>
                                                    </div>
                                                </div>
                                            </div>
                                        </t>
                                    </templates>
                                </kanban>
                            </field>
                        </page>
                        <page string="Other Info">
                            <group string="Email Interface" colspan="2">
                                <div attrs="{'invisible': [('alias_domain', '=', False)]}">
                                    <field name="alias_id" invisible="1" required="0"/>
                                    <label for="alias_name" class="oe_edit_only "/>
                                    <field name="alias_name" class="oe_inline" attrs="{'required': [('alias_id', '!=', False)]}"/>@<field name="alias_domain" class="oe_inline"/>
                                </div>
                            </group>
                            <group>
                                <group string="Administration" groups="project.group_time_work_estimation_tasks">
                                    <field name="planned_hours" widget="float_time"/>
                                    <field name="effective_hours" widget="float_time"/>
                                    <field name="resource_calendar_id"/>
                                </group>
                                <group string="Miscellaneous" name="misc">
                                    <field name="date"/>
                                    <field name="priority"/>
                                    <field name="active" attrs="{'invisible':[('state','in',['open', 'pending', 'template'])]}"/>

                                    <field name="currency_id" groups="base.group_multi_currency" required="1"/>
                                    <field name="parent_id" domain="[('id','!=',analytic_account_id)]" context="{'current_model': 'project.project'}"/>
                                </group>
                            </group>
                        </page>
                        <page string="Tasks Stages">
                             <field name="type_ids"/>
                        </page>
                    </notebook>
                </sheet>
                <div class="oe_chatter">
                    <field name="message_ids" widget="mail_thread"/>
                    <field name="message_follower_ids" widget="mail_followers"/>
                </div>
                </form>
            </field>
        </record>

       <record id="view_project_project_filter" model="ir.ui.view">
            <field name="name">project.project.select</field>
{'fraction_non_alphanumeric': 0.13739870755974973, 'fraction_numerical': 0.00312852600266694, 'mean_word_length': 1.539924449654813, 'pattern_counts': {'":': 2, '<': 336, '<?xml version=': 2, '>': 336, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 67, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5978001', 'n_tokens_mistral': 4852, 'n_tokens_neox': 4647, 'n_words': 813}