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

        <!-- Users -->
        <record id="base.user_demo" model="res.users">
            <field name="groups_id" eval="[(4, ref('base.group_sale_salesman')),(4, ref('group_project_manager'))]"/>
        </record>

        <!-- Categories -->
        <record id="project_tags_00" model="project.tags">
            <field name="name">Contact's suggestion</field>
        </record>
        <record id="project_tags_01" model="project.tags">
            <field name="name">Feature request</field>
        </record>
        <record id="project_tags_02" model="project.tags">
            <field name="name">Experiment</field>
        </record>
        <record id="project_tags_03" model="project.tags">
            <field name="name">Usability</field>
        </record>

        <!-- Email templates -->
        <record id="mail_template_data_project_task" model="mail.template">
            <field name="name">Task: Reception Acknowledgment</field>
            <field name="subject">Reception of ${object.name}</field>
            <field name="model_id" ref="project.model_project_task"/>
            <field name="use_default_to" eval="True"/>
            <field name="body_html"><![CDATA[
<p>Dear ${object.partner_id.name or 'customer'},</p>
<p>Thank you for your enquiry.<br /></p>
<p>If you have any questions, please let us know.</p>
<p>Best regards,</p>]]></field>
            <field name="auto_delete" eval="True"/>
        </record>

        <!-- Stages -->
        <record id="project_stage_0" model="project.task.type">
            <field name="sequence">1</field>
            <field name="name">To Do</field>
            <field name="legend_blocked">Not validated</field>
            <field name="legend_priority">Use the priority for tasks related to gold customers</field>
            <field name="mail_template_id" ref="project.mail_template_data_project_task"/>
        </record>
        <record id="project_stage_1" model="project.task.type">
            <field name="sequence">10</field>
            <field name="name">In Progress</field>
            <field name="legend_blocked">Need functional or technical help</field>
            <field name="legend_done">Buzz or set as done</field>
        </record>
        <record id="project_stage_2" model="project.task.type">
            <field name="sequence">20</field>
            <field name="name">Done</field>
            <field name="fold" eval="True"/>
        </record>
        <record id="project_stage_3" model="project.task.type">
            <field name="sequence">30</field>
            <field name="name">Cancelled</field>
            <field name="legend_done">Ready to reopen</field>
            <field name="fold" eval="True"/>
        </record>

        <record id="project_project_1" model="project.project">
            <field name="date_start" eval="time.strftime('%Y-%m-01 10:00:00')"/>
            <field name="state">open</field>
            <field name="name">Website for Sales &amp; WMS</field>
            <field name="color">3</field>
            <field name="partner_id" ref="portal.partner_demo_portal"/>
            <field name="privacy_visibility">portal</field>
            <field name="user_id" ref="base.user_demo"/>
            <field name="alias_model">project.task</field>
            <field name="type_ids" eval="[(4, ref('project_stage_0')), (4, ref('project_stage_1')), (4, ref('project_stage_2')), (4, ref('project_stage_3'))]"/>
        </record>
        <function model="project.project" name="message_subscribe"
            eval="[ref('project_project_1')], [ref('portal.partner_demo_portal')]"/>

        <record id="project_project_2" model="project.project">
            <field name="name">Research &amp; Development</field>
            <field name="privacy_visibility">followers</field>
            <field name="user_id" ref="base.user_demo"/>
            <field name="alias_model">project.task</field>
            <field name="type_ids" eval="[(4, ref('project_stage_0')), (4, ref('project_stage_1')), (4, ref('project_stage_2')), (4, ref('project_stage_3'))]"/>
        </record>

        <record id="project_project_3" model="project.project">
            <field name="sequence">10</field>
            <field name="name">E-Learning Integration</field>
            <field name="label_tasks">Trainings</field>
            <field name="user_id" ref="base.user_demo"/>
            <field name="alias_model">project.task</field>
            <field name="type_ids" eval="[(4, ref('project_stage_0')), (4, ref('project_stage_1')), (4, ref('project_stage_2')), (4, ref('project_stage_3'))]"/>
            <field name="privacy_visibility">employees</field>
        </record>

        <record id="project_project_4" model="project.project">
            <field name="sequence">20</field>
            <field name="name">Website Design Templates</field>
            <field name="label_tasks">Designs</field>
            <field name="user_id" ref="base.user_root"/>
            <field name="privacy_visibility">followers</field>
            <field name="alias_model">project.task</field>
            <field name="type_ids" eval="[(4, ref('project_stage_0')), (4, ref('project_stage_1')), (4, ref('project_stage_2')), (4, ref('project_stage_3'))]"/>
            <field name="privacy_visibility">employees</field>
        </record>

        <record id="project_project_5" model="project.project">
            <field name="sequence">2</field>
            <field name="partner_id" ref="base.res_partner_4"/>
            <field name="name">Data Import/Export Plugin</field>
            <field name="label_tasks">Databases</field>
            <field name="alias_model">project.task</field>
            <field name="type_ids" eval="[(4, ref('project_stage_0')), (4, ref('project_stage_1')), (4, ref('project_stage_2')), (4, ref('project_stage_3'))]"/>
            <field name="privacy_visibility">followers</field>
        </record>

        <!-- Tasks -->
        <record id="project_task_1" model="project.task">
            <field name="planned_hours" eval="40.0"/>
            <field name="remaining_hours" eval="40.0"/>
            <field name="user_id" ref="base.user_demo"/>
            <field name="priority">0</field>
            <field name="project_id" ref="project.project_project_1"/>
            <field name="name">Prepare Requirements Document</field>
            <field name="stage_id" ref="project_stage_0"/>
            <field name="color">3</field>
        </record><commit_msg>[IMP] project: Demo channel 'Projects & Tasks' following all demo projects<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">

        <!-- Users -->
        <record id="base.user_demo" model="res.users">
            <field name="groups_id" eval="[(4, ref('base.group_sale_salesman')),(4, ref('group_project_manager'))]"/>
        </record>

        <!-- Categories -->
        <record id="project_tags_00" model="project.tags">
            <field name="name">Contact's suggestion</field>
        </record>
        <record id="project_tags_01" model="project.tags">
            <field name="name">Feature request</field>
        </record>
        <record id="project_tags_02" model="project.tags">
            <field name="name">Experiment</field>
        </record>
        <record id="project_tags_03" model="project.tags">
            <field name="name">Usability</field>
        </record>

        <!-- Email templates -->
        <record id="mail_template_data_project_task" model="mail.template">
            <field name="name">Task: Reception Acknowledgment</field>
            <field name="subject">Reception of ${object.name}</field>
            <field name="model_id" ref="project.model_project_task"/>
            <field name="use_default_to" eval="True"/>
            <field name="body_html"><![CDATA[
<p>Dear ${object.partner_id.name or 'customer'},</p>
<p>Thank you for your enquiry.<br /></p>
<p>If you have any questions, please let us know.</p>
<p>Best regards,</p>]]></field>
            <field name="auto_delete" eval="True"/>
        </record>

        <!-- Stages -->
        <record id="project_stage_0" model="project.task.type">
            <field name="sequence">1</field>
            <field name="name">To Do</field>
            <field name="legend_blocked">Not validated</field>
            <field name="legend_priority">Use the priority for tasks related to gold customers</field>
            <field name="mail_template_id" ref="project.mail_template_data_project_task"/>
        </record>
        <record id="project_stage_1" model="project.task.type">
            <field name="sequence">10</field>
            <field name="name">In Progress</field>
            <field name="legend_blocked">Need functional or technical help</field>
            <field name="legend_done">Buzz or set as done</field>
        </record>
        <record id="project_stage_2" model="project.task.type">
            <field name="sequence">20</field>
            <field name="name">Done</field>
            <field name="fold" eval="True"/>
        </record>
        <record id="project_stage_3" model="project.task.type">
            <field name="sequence">30</field>
            <field name="name">Cancelled</field>
            <field name="legend_done">Ready to reopen</field>
            <field name="fold" eval="True"/>
        </record>

        <record id="project_project_1" model="project.project">
            <field name="date_start" eval="time.strftime('%Y-%m-01 10:00:00')"/>
            <field name="state">open</field>
            <field name="name">Website for Sales &amp; WMS</field>
            <field name="color">3</field>
            <field name="partner_id" ref="portal.partner_demo_portal"/>
            <field name="privacy_visibility">portal</field>
            <field name="user_id" ref="base.user_demo"/>
            <field name="alias_model">project.task</field>
            <field name="type_ids" eval="[(4, ref('project_stage_0')), (4, ref('project_stage_1')), (4, ref('project_stage_2')), (4, ref('project_stage_3'))]"/>
        </record>
        <function model="project.project" name="message_subscribe"
            eval="[ref('project_project_1')], [ref('portal.partner_demo_portal')]"/>

        <record id="project_project_2" model="project.project">
            <field name="name">Research &amp; Development</field>
            <field name="privacy_visibility">followers</field>
            <field name="user_id" ref="base.user_demo"/>
            <field name="alias_model">project.task</field>
            <field name="type_ids" eval="[(4, ref('project_stage_0')), (4, ref('project_stage_1')), (4, ref('project_stage_2')), (4, ref('project_stage_3'))]"/>
        </record>

        <record id="project_project_3" model="project.project">
            <field name="sequence">10</field>
            <field name="name">E-Learning Integration</field>
            <field name="label_tasks">Trainings</field>
            <field name="user_id" ref="base.user_demo"/>
            <field name="alias_model">project.task</field>
            <field name="type_ids" eval="[(4, ref('project_stage_0')), (4, ref('project_stage_1')), (4, ref('project_stage_2')), (4, ref('project_stage_3'))]"/>
            <field name="privacy_visibility">employees</field>
        </record>

        <record id="project_project_4" model="project.project">
            <field name="sequence">20</field>
            <field name="name">Website Design Templates</field>
            <field name="label_tasks">Designs</field>
            <field name="user_id" ref="base.user_root"/>
            <field name="privacy_visibility">followers</field>
            <field name="alias_model">project.task</field>
            <field name="type_ids" eval="[(4, ref('project_stage_0')), (4, ref('project_stage_1')), (4, ref('project_stage_2')), (4, ref('project_stage_3'))]"/>
            <field name="privacy_visibility">employees</field>
        </record>

        <record id="project_project_5" model="project.project">
            <field name="sequence">2</field>
            <field name="partner_id" ref="base.res_partner_4"/>
            <field name="name">Data Import/Export Plugin</field>
            <field name="label_tasks">Databases</field>
            <field name="alias_model">project.task</field>
            <field name="type_ids" eval="[(4, ref('project_stage_0')), (4, ref('project_stage_1')), (4, ref('project_stage_2')), (4, ref('project_stage_3'))]"/>
            <field name="privacy_visibility">followers</field>
        </record>

        <!-- Channel -->
        <record id="mail_channel_project_task" model="mail.channel">
            <field name="name">Projects &amp; Tasks</field>
            <field name="group_public_id" ref="group_project_user"/>
            <field name="group_ids" eval="[(4, ref('group_project_user'))]"/>
        </record>

        <!-- Channel follows all above projects -->
        <function model="project.project" name="message_subscribe"
            eval="[ref('project_project_1'), ref('project_project_2'),
            ref('project_project_3'), ref('project_project_4'),
            ref('project_project_5')], None, [ref('mail_channel_project_task')]"/>

        <!-- Tasks -->
        <record id="project_task_1" model="project.task">
            <field name="planned_hours" eval="40.0"/>
            <field name="remaining_hours" eval="40.0"/>
            <field name="user_id" ref="base.user_demo"/>
            <field name="priority">0</field>
            <field name="project_id" ref="project.project_project_1"/>
            <field name="name">Prepare Requirements Document</field>
            <field name="stage_id" ref="project_stage_0"/>
            <field name="color">3</field>
        </record>
{'fraction_non_alphanumeric': 0.1725207356653444, 'fraction_numerical': 0.0144248106743599, 'mean_word_length': 2.8721027645908963, 'pattern_counts': {'":': 0, '<': 350, '<?xml version=': 2, '>': 350, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5605483', 'n_tokens_mistral': 4193, 'n_tokens_neox': 4073, 'n_words': 731}