<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="40"/>

        <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"/>

        <record id="view_task_search_form" model="ir.ui.view">
            <field name="name">project.task.search.form</field>
            <field name="model">project.task</field>
            <field name="arch" type="xml">
               <search string="Tasks">
                    <field name="name" string="Tasks"/>
                    <field name="categ_ids"/>
                    <separator/>
                    <filter icon="terp-mail-message-new" string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
                    <separator/>
                    <filter name="draft" string="New" domain="[('state','=','draft')]" help="New Tasks" icon="terp-check"/>
                    <filter name="open" string="In Progress" domain="[('state','=','open')]" help="In Progress Tasks" icon="terp-camera_test"/>
                    <filter string="Pending" domain="[('state','=','pending')]" context="{'show_delegated':False}" help="Pending Tasks" icon="terp-gtk-media-pause"/>
                    <separator/>
                    <filter name="My project" string="Project" domain="[('project_id.user_id','=',uid)]" help="My Projects" icon="terp-check"/>
                    <separator/>
                    <filter string="My Tasks" domain="[('user_id','=',uid)]"  help="My Tasks" icon="terp-personal"/>
                    <filter string="Unassigned Tasks" domain="[('user_id','=',False)]"  help="Unassigned Tasks" icon="terp-personal-"/>
                    <separator/>
                    <filter string="Deadlines" context="{'deadline_visible': False}" domain="[('date_deadline','&lt;&gt;',False)]"
                        help="Show only tasks having a deadline" icon="terp-gnome-cpu-frequency-applet+"/>
                    <field name="project_id"/>
                    <field name="user_id"/>
                    <group expand="0" string="Group By...">
                        <filter string="Users" name="group_user_id" icon="terp-personal" domain="[]"  context="{'group_by':'user_id'}"/>
                        <filter string="Project" name="group_project_id" icon="terp-folder-violet" domain="[]" context="{'group_by':'project_id'}"/>
                        <filter string="Stage" name="group_stage_id" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}"/>
                        <filter string="Deadline" icon="terp-gnome-cpu-frequency-applet+" domain="[]" context="{'group_by':'date_deadline'}"/>
                        <filter string="Start Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_start'}" groups="base.group_no_one"/>
                        <filter string="End Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_end'}" groups="base.group_no_one"/>
                    </group>
                </search>
            </field>
        </record>

        <record id="act_project_project_2_project_task_all" model="ir.actions.act_window">
            <field name="name">Tasks</field>
            <field name="res_model">project.task</field>
            <field name="view_mode">kanban,tree,form,calendar,gantt,graph</field>
            <field name="context">{
                'search_default_project_id': [active_id], 
                'default_project_id': active_id, 
            }</field>
            <field name="search_view_id" ref="view_task_search_form"/>
            <field name="help" type="html">
                <p>
                    OpenERP's project management allows you to manage the pipeline
                    of tasks in order to get things done efficiently. You can
                    track progress, discuss on tasks, attach documents, etc.
                </p>
            </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_open" string="Re-open project" type="object" states="pending" class="oe_highlight" groups="base.group_user"/>
                    <button name="set_done" string="Close Project" type="object" states="open,pending" groups="base.group_user"/>
                    <button name="set_open" string="Re-open project" type="object" states="cancelled,close" groups="base.group_user"/>
                    <button name="set_pending" string="Pending" type="object" states="open" groups="base.group_user"/>
                    <button name="set_template" string="Set as Template" type="object" states="open" groups="base.group_user"/>
                    <button string="New Project Based on Template" name="duplicate_template"  type="object" states="template" context="{'parent_id':parent_id}" class="oe_highlight" groups="base.group_user"/>
                    <button name="reset_project" string="Reset as Project" type="object" states="template" class="oe_highlight" groups="base.group_user"/>
                    <button name="set_cancel" string="Cancel Project" type="object" states="open,pending" groups="base.group_user"/>
                    <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="group_alias"
                            attrs="{'invisible': [('alias_domain', '=', False)]}">
                        <label for="alias_id" string="Email Alias"/>
                        <field name="alias_id" class="oe_inline oe_read_only" required="0" nolabel="1"/>
                        <span name="edit_alias" class="oe_edit_only">
                            <field name="alias_name" class="oe_inline"
                                    attrs="{'required': [('alias_id', '!=', False)]}"/>
                            @
                            <field name="alias_domain" class="oe_inline" readonly="1"/>
                        </span>
                    </div>
                        <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" groups="base.group_user">
                        <button name="%(act_project_project_2_project_task_all)d" string="Tasks"
                            type="action" attrs="{'invisible':[('use_tasks','=', 0)]}"/>
                        <button name="attachment_tree_view" string="Documents" type="object"/>
                    </div>
                    <group>
                        <group>
                            <field name="privacy_visibility"/>
                            <field name="user_id" string="Project Manager" 
                                attrs="{'readonly':[('state','in',['close', 'cancelled'])]}" 
                                context="{'default_groups_ref': ['base.group_user', 'project.group_project_manager']}"/>
                        </group>
                        <group>
                            <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
                            <p colspan="2" attrs="{'invisible': [('analytic_account_id','=',False)]}">
                                To invoice or setup invoicing and renewal options, go to the related contract: <field name="analytic_account_id" readonly="1" required="0" class="oe_inline"/>.
                            </p>
                        </group>
                    </group>
                    <notebook>
                        <page string="Team" name="team">
                            <field colspan="4" name="members" widget="many2many_kanban">
                                <kanban quick_create="false" create="true">
                                    <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>
                                <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_start"/>
                                    <field name="date" string="End Date"/>
                                    <field name="priority" groups="base.group_no_one"/>
                                    <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" string="Parent" help="Append this project to another one using analytic accounts hierarchy" domain="[('id','!=',analytic_account_id)]" context="{'current_model': 'project.project'}" />
                                </group>
                                <group string="Email Interface" attrs="{'invisible': [('alias_domain', '=', False)]}">
                                    <div>
                                        <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>
                        </page>
                        <page string="Project Stages" attrs="{'invisible': [('use_tasks', '=', False)]}" name="project_stages">
                             <field name="type_ids"/>
                        </page>
                    </notebook>
                </sheet>
                <div class="oe_chatter">
                    <field name="message_follower_ids" widget="mail_followers" help="Follow this project to automatically track the events associated to tasks and issues of this project." groups="base.group_user"/>
                    <field name="message_ids" widget="mail_thread"/>
                </div>
                </form>
            </field>
        </record>

        <record id="view_project_project_filter" model="ir.ui.view">
            <field name="name">project.project.select</field>
            <field name="model">project.project</field>
            <field name="arch" type="xml">
                <search string="Search Project">
                    <field name="name" string="Project Name"/>
                    <filter icon="terp-mail-message-new" string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/><commit_msg>[IMP]project: remove required=0 to mandatory field<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="40"/>

        <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"/>

        <record id="view_task_search_form" model="ir.ui.view">
            <field name="name">project.task.search.form</field>
            <field name="model">project.task</field>
            <field name="arch" type="xml">
               <search string="Tasks">
                    <field name="name" string="Tasks"/>
                    <field name="categ_ids"/>
                    <separator/>
                    <filter icon="terp-mail-message-new" string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
                    <separator/>
                    <filter name="draft" string="New" domain="[('state','=','draft')]" help="New Tasks" icon="terp-check"/>
                    <filter name="open" string="In Progress" domain="[('state','=','open')]" help="In Progress Tasks" icon="terp-camera_test"/>
                    <filter string="Pending" domain="[('state','=','pending')]" context="{'show_delegated':False}" help="Pending Tasks" icon="terp-gtk-media-pause"/>
                    <separator/>
                    <filter name="My project" string="Project" domain="[('project_id.user_id','=',uid)]" help="My Projects" icon="terp-check"/>
                    <separator/>
                    <filter string="My Tasks" domain="[('user_id','=',uid)]"  help="My Tasks" icon="terp-personal"/>
                    <filter string="Unassigned Tasks" domain="[('user_id','=',False)]"  help="Unassigned Tasks" icon="terp-personal-"/>
                    <separator/>
                    <filter string="Deadlines" context="{'deadline_visible': False}" domain="[('date_deadline','&lt;&gt;',False)]"
                        help="Show only tasks having a deadline" icon="terp-gnome-cpu-frequency-applet+"/>
                    <field name="project_id"/>
                    <field name="user_id"/>
                    <group expand="0" string="Group By...">
                        <filter string="Users" name="group_user_id" icon="terp-personal" domain="[]"  context="{'group_by':'user_id'}"/>
                        <filter string="Project" name="group_project_id" icon="terp-folder-violet" domain="[]" context="{'group_by':'project_id'}"/>
                        <filter string="Stage" name="group_stage_id" icon="terp-stage" domain="[]" context="{'group_by':'stage_id'}"/>
                        <filter string="Deadline" icon="terp-gnome-cpu-frequency-applet+" domain="[]" context="{'group_by':'date_deadline'}"/>
                        <filter string="Start Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_start'}" groups="base.group_no_one"/>
                        <filter string="End Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_end'}" groups="base.group_no_one"/>
                    </group>
                </search>
            </field>
        </record>

        <record id="act_project_project_2_project_task_all" model="ir.actions.act_window">
            <field name="name">Tasks</field>
            <field name="res_model">project.task</field>
            <field name="view_mode">kanban,tree,form,calendar,gantt,graph</field>
            <field name="context">{
                'search_default_project_id': [active_id], 
                'default_project_id': active_id, 
            }</field>
            <field name="search_view_id" ref="view_task_search_form"/>
            <field name="help" type="html">
                <p>
                    OpenERP's project management allows you to manage the pipeline
                    of tasks in order to get things done efficiently. You can
                    track progress, discuss on tasks, attach documents, etc.
                </p>
            </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_open" string="Re-open project" type="object" states="pending" class="oe_highlight" groups="base.group_user"/>
                    <button name="set_done" string="Close Project" type="object" states="open,pending" groups="base.group_user"/>
                    <button name="set_open" string="Re-open project" type="object" states="cancelled,close" groups="base.group_user"/>
                    <button name="set_pending" string="Pending" type="object" states="open" groups="base.group_user"/>
                    <button name="set_template" string="Set as Template" type="object" states="open" groups="base.group_user"/>
                    <button string="New Project Based on Template" name="duplicate_template"  type="object" states="template" context="{'parent_id':parent_id}" class="oe_highlight" groups="base.group_user"/>
                    <button name="reset_project" string="Reset as Project" type="object" states="template" class="oe_highlight" groups="base.group_user"/>
                    <button name="set_cancel" string="Cancel Project" type="object" states="open,pending" groups="base.group_user"/>
                    <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="group_alias"
                            attrs="{'invisible': [('alias_domain', '=', False)]}">
                        <label for="alias_id" string="Email Alias"/>
                        <field name="alias_id" class="oe_inline oe_read_only" required="0" nolabel="1"/>
                        <span name="edit_alias" class="oe_edit_only">
                            <field name="alias_name" class="oe_inline"
                                    attrs="{'required': [('alias_id', '!=', False)]}"/>
                            @
                            <field name="alias_domain" class="oe_inline" readonly="1"/>
                        </span>
                    </div>
                        <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" groups="base.group_user">
                        <button name="%(act_project_project_2_project_task_all)d" string="Tasks"
                            type="action" attrs="{'invisible':[('use_tasks','=', 0)]}"/>
                        <button name="attachment_tree_view" string="Documents" type="object"/>
                    </div>
                    <group>
                        <group>
                            <field name="privacy_visibility"/>
                            <field name="user_id" string="Project Manager" 
                                attrs="{'readonly':[('state','in',['close', 'cancelled'])]}" 
                                context="{'default_groups_ref': ['base.group_user', 'project.group_project_manager']}"/>
                        </group>
                        <group>
                            <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
                            <p colspan="2" attrs="{'invisible': [('analytic_account_id','=',False)]}">
                                To invoice or setup invoicing and renewal options, go to the related contract: <field name="analytic_account_id" readonly="1" required="0" class="oe_inline"/>.
                            </p>
                        </group>
                    </group>
                    <notebook>
                        <page string="Team" name="team">
                            <field colspan="4" name="members" widget="many2many_kanban">
                                <kanban quick_create="false" create="true">
                                    <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>
                                <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_start"/>
                                    <field name="date" string="End Date"/>
                                    <field name="priority" groups="base.group_no_one"/>
                                    <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" string="Parent" help="Append this project to another one using analytic accounts hierarchy" domain="[('id','!=',analytic_account_id)]" context="{'current_model': 'project.project'}" />
                                </group>
                                <group string="Email Interface" attrs="{'invisible': [('alias_domain', '=', False)]}">
                                    <div>
                                        <field name="alias_id" invisible="1" />
                                        <label for="alias_name" class="oe_edit_only "/>
                                        <field name="alias_name" class="oe_inline" />@<field name="alias_domain" class="oe_inline"/>
                                    </div>
                                </group>
                            </group>
                        </page>
                        <page string="Project Stages" attrs="{'invisible': [('use_tasks', '=', False)]}" name="project_stages">
                             <field name="type_ids"/>
                        </page>
                    </notebook>
                </sheet>
                <div class="oe_chatter">
                    <field name="message_follower_ids" widget="mail_followers" help="Follow this project to automatically track the events associated to tasks and issues of this project." groups="base.group_user"/>
                    <field name="message_ids" widget="mail_thread"/>
                </div>
                </form>
            </field>
        </record>

        <record id="view_project_project_filter" model="ir.ui.view">
            <field name="name">project.project.select</field>
            <field name="model">project.project</field>
            <field name="arch" type="xml">
                <search string="Search Project">
                    <field name="name" string="Project Name"/>
                    <filter icon="terp-mail-message-new" string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
{'fraction_non_alphanumeric': 0.14385249056894295, 'fraction_numerical': 0.0024636230656709525, 'mean_word_length': 1.579584946877172, 'pattern_counts': {'":': 2, '<': 361, '<?xml version=': 2, '>': 361, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 76, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6516029', 'n_tokens_mistral': 6550, 'n_tokens_neox': 6217, 'n_words': 1207}