<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2013-Today  <NAME> - CLVsol
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo>
        
    <record id="clv_phase_view_form_person" model="ir.ui.view">
        <field name="name">clv.phase.form</field>
        <field name="model">clv.phase</field>
        <field name="inherit_id" ref="clv_phase.clv_phase_view_form"/>
        <field name="priority" eval="8"/>
        <field name="arch" type="xml">
            <page name="phase_for" position="inside">
                <group string="Persons">
                    <group>
                        <button name="clv_person.clv_person_action"
                                type="action"
                                class="oe_stat_button"
                                icon="fa-list"
                                context="{'search_default_phase_id': id}"
                                attrs="{'invisible': [('person_ids', '=', [])]}"
                                >
                            <div class="o_form_field o_stat_info">
                                <span class="o_stat_value">
                                    <field name="count_persons"/>
                                </span>
                                <span class="o_stat_text"> Person(s)</span>
                            </div>
                        </button>
                    </group>
                    <group>
                    </group>
                    <field name="person_ids" colspan="4" nolabel="1"/>
                </group>
            </page>
        </field>
    </record>

    <record id="clv_person_view_form_phase" model="ir.ui.view">
        <field name="name">clv.person.form</field>
        <field name="model">clv.person</field>
        <field name="inherit_id" ref="clv_person.clv_person_view_form"/>
        <field name="priority" eval="6"/>
        <field name="arch" type="xml">
            <group name="group_left" position="inside">
                <field name="phase_id" options='{"no_open": True, "no_create": True}'/>
            </group>
        </field>
    </record>

    <record id="clv_person_view_tree_phase" model="ir.ui.view">
        <field name="name">clv.person.tree</field>
        <field name="model">clv.person</field>
        <field name="inherit_id" ref="clv_person.clv_person_view_tree"/>
        <field name="priority" eval="8"/>
        <field name="arch" type="xml">
            <field name="code" position="after"><commit_msg>[IMP] clv_person_history (IMP views/phase_view.xml)<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2013-Today  <NAME> - CLVsol
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo>
        
    <record id="clv_phase_view_form_person" model="ir.ui.view">
        <field name="name">clv.phase.form</field>
        <field name="model">clv.phase</field>
        <field name="inherit_id" ref="clv_phase.clv_phase_view_form"/>
        <field name="priority" eval="8"/>
        <field name="arch" type="xml">
            <page name="phase_for" position="inside">
                <group string="Persons">
                    <group>
                        <button name="clv_person.clv_person_action"
                                type="action"
                                class="oe_stat_button"
                                icon="fa-list"
                                context="{'search_default_phase_id': id}"
                                attrs="{'invisible': [('person_ids', '=', [])]}"
                                >
                            <div class="o_form_field o_stat_info">
                                <span class="o_stat_value">
                                    <field name="count_persons"/>
                                </span>
                                <span class="o_stat_text"> Person(s)</span>
                            </div>
                        </button>
                    </group>
                    <group>
                    </group>
                    <field name="person_ids" colspan="4" nolabel="1"/>
                </group>
            </page>
        </field>
    </record>

    <record id="clv_person_view_form_phase" model="ir.ui.view">
        <field name="name">clv.person.form</field>
        <field name="model">clv.person</field>
        <field name="inherit_id" ref="clv_person.clv_person_view_form"/>
        <field name="priority" eval="6"/>
        <field name="arch" type="xml">
            <group name="group_bottom_left" position="inside">
                <field name="phase_id" options='{"no_open": True, "no_create": True}'/>
            </group>
        </field>
    </record>

    <record id="clv_person_view_tree_phase" model="ir.ui.view">
        <field name="name">clv.person.tree</field>
        <field name="model">clv.person</field>
        <field name="inherit_id" ref="clv_person.clv_person_view_tree"/>
        <field name="priority" eval="8"/>
        <field name="arch" type="xml">
            <field name="code" position="after">
{'fraction_non_alphanumeric': 0.15004897159647404, 'fraction_numerical': 0.005484818805093046, 'mean_word_length': 1.5555555555555556, 'pattern_counts': {'":': 4, '<': 111, '<?xml version=': 2, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 9}, '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': '4895004', 'n_tokens_mistral': 1502, 'n_tokens_neox': 1439, 'n_words': 234}