<commit_before><?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
        <record id="goal_list_action" model="ir.actions.act_window">
            <field name="name">Goals</field>
            <field name="res_model">gamification.goal</field>
            <field name="view_mode">tree,form,calendar</field>
        </record>

        <record id="goal_list_view" model="ir.ui.view">
            <field name="name">Goal list</field>
            <field name="model">gamification.goal</field>
            <field name="arch" type="xml">
                <tree string="Goal list" colors="red:state == 'failed';green:state == 'reached'"> 
                    <field name="type_id"/>
                    <field name="user_id"/>
                    <field name="current"/>
                    <field name="target_goal"/>
                    <field name="start_date"/>
                    <field name="end_date"/>
                    <field name="completeness" widget="progressbar"/>
                    <field name="state" invisible="1"/>
                </tree>
            </field>
        </record>
		
		<record id="goal_form_view" model="ir.ui.view">
            <field name="name">Goal form</field>
            <field name="model">gamification.goal</field>
            <field name="arch" type="xml">
                <form string="Goal" version="7.0">
                    <header>
                        <button string="Mark as reached" type="object" name="action_reach" states="inprogress"/>
                        <button string="Mark as failed" type="object" name="action_fail" states="inprogress"/>
                        <button string="Cancel completion" type="object" name="action_cancel" states="failed,reached"/>
                        <field name="state" widget="statusbar"/>
                    </header>
                    <sheet>
                        <group>
                            <group string="Reference"><commit_msg>[IMP] gamification: hide done-fail state for goals<commit_after><?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
        <record id="goal_list_action" model="ir.actions.act_window">
            <field name="name">Goals</field>
            <field name="res_model">gamification.goal</field>
            <field name="view_mode">tree,form,calendar</field>
        </record>

        <record id="goal_list_view" model="ir.ui.view">
            <field name="name">Goal list</field>
            <field name="model">gamification.goal</field>
            <field name="arch" type="xml">
                <tree string="Goal list" colors="red:state == 'failed';green:state == 'reached'"> 
                    <field name="type_id"/>
                    <field name="user_id"/>
                    <field name="current"/>
                    <field name="target_goal"/>
                    <field name="start_date"/>
                    <field name="end_date"/>
                    <field name="completeness" widget="progressbar"/>
                    <field name="state" invisible="1"/>
                </tree>
            </field>
        </record>
		
		<record id="goal_form_view" model="ir.ui.view">
            <field name="name">Goal form</field>
            <field name="model">gamification.goal</field>
            <field name="arch" type="xml">
                <form string="Goal" version="7.0">
                    <header>
                        <button string="Mark as reached" type="object" name="action_reach" states="inprogress"/>
                        <button string="Mark as failed" type="object" name="action_fail" states="inprogress"/>
                        <button string="Cancel completion" type="object" name="action_cancel" states="failed,reached"/>
                        <field name="state" widget="statusbar" statusbar_visible="inprogress" />
                    </header>
                    <sheet>
                        <group>
                            <group string="Reference">
{'fraction_non_alphanumeric': 0.14761544284632855, 'fraction_numerical': 0.003028009084027252, 'mean_word_length': 1.7642956764295676, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 2, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '6253766', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1005, 'n_words': 198}