<commit_before><?xml version='1.0' encoding='UTF-8' ?>
<openerp>
    <data noupdate="0">

        <!-- DISTRIBUTION LIST -->

        <!-- SEARCH -->
        <record id="distribution_list_search" model="ir.ui.view">
            <field name="name">distribution.list.search (mozaik_communication)</field>
            <field name="model">distribution.list</field>
            <field name="inherit_id" ref="distribution_list.distribution_list_search" />
            <field name="arch" type="xml">
                <xpath expr="//field[@name='dst_model_id']" position="replace"/>
                <xpath expr="//filter[@name='dst_model']" position="replace">
                    <filter name="instance" string="Instance" domain="[]" context="{'group_by':'int_instance_id'}" />
                </xpath>

                <xpath expr="//field[@name='name']" position="after">
                    <field name="mail_alias_id" />
                    <filter name="mail_forwarding" string="Allow Mail Forwarding"
                        domain="[('mail_forwarding','=',True)]" />
                    <field name="int_instance_id"/>
                    <filter name="expired" string="Expired"
                        context="{'invisible_expire_date': False}"
                        domain="[('active','=',False)]" help="Expired Coordinates" />
                    <filter name="all" string="All"
                        context="{'invisible_expire_date': False}"
                        domain="['|', ('active', '=', True), ('active', '!=', True)]" help="All Coordinates, expired or not" />
                </xpath>
            </field>
        </record>
        <record id="mass_mailing_distribution_list.distribution_list_search" model="ir.ui.view">
            <field name="groups_id" eval="[(6, 0, [ref('settings_improvement.unused_features')]),
                                          ]"/>
        </record>

        <!-- TREE -->
        <record id="distribution_list_tree" model="ir.ui.view">
            <field name="name">distribution.list.tree (mozaik_communication)</field>
            <field name="model">distribution.list</field>
            <field name="inherit_id" ref="distribution_list.distribution_list_tree" />
            <field name="arch" type="xml">
                <xpath expr="//field[@name='dst_model_id']" position="replace">
                    <field name="dst_model_id" invisible="1"/>
                    <field name="newsletter" invisible="1"/>
                    <field name="int_instance_id"/>
                    <field name="active" invisible="1"/>
                </xpath>

                <!-- No more mass mailing but mass function in our case -->
                <xpath expr="//button[@name='mass_mailing']" position="replace">
                    <button name="%(distribution_list_mass_function_action)d" type="action" icon="terp-partner"
                            string="Mass Action" attrs="{'invisible':[('active', '=', False)]}"
                            groups="mozaik_base.mozaik_res_groups_user"/>
                    <field name="expire_date"
                           invisible="context.get('invisible_expire_date', True)" />
                </xpath>

                <xpath expr="//button[@name='get_action_from_domains']" position="replace">
                    <button name="get_action_from_domains"
                            attrs="{'invisible':[('active', '=', False)]}"
                            string="See Distribution List Result" type="object" icon="gtk-redo"
                            groups="mozaik_base.res_groups_base" />
                </xpath>

            </field>
        </record>
        <record id="mass_mailing_distribution_list.distribution_list_tree" model="ir.ui.view">
            <field name="groups_id" eval="[(6, 0, [ref('settings_improvement.unused_features')]),
                                          ]"/>
        </record>

        <!-- FORM -->
        <record id="distribution_list_form" model="ir.ui.view">
            <field name="name">distribution.list.form (mozaik_communication)</field>
            <field name="model">distribution.list</field>
            <field name="inherit_id" ref="distribution_list.distribution_list_form" />
            <field name="arch" type="xml">

                <!-- Rebuild header -->
                <xpath expr="//header" position="replace">
                    <header>
                        <div attrs="{'invisible': ['|',('id','=',False),('active','=',False)]}"
                             invisible="context.get('popup')"
                             groups="mozaik_base.mozaik_res_groups_user">
                            <button name="action_invalidate" string="Invalidate" type="object"
                                    confirm="Invalidate Distribution List: proceed anyway?" />
                        </div>
                    </header>
                </xpath>

                <xpath expr="//group[@name='info']" position="replace">
                    <group attrs="{'invisible': [('newsletter', '=', False)]}">
                        <field name="public" />
                    </group><commit_msg>[FIX] wrong inherited view id<commit_after><?xml version='1.0' encoding='UTF-8' ?>
<openerp>
    <data noupdate="0">

        <!-- DISTRIBUTION LIST -->

        <!-- SEARCH -->
        <record id="distribution_list_search" model="ir.ui.view">
            <field name="name">distribution.list.search (mozaik_communication)</field>
            <field name="model">distribution.list</field>
            <field name="inherit_id" ref="distribution_list.distribution_list_search" />
            <field name="arch" type="xml">
                <xpath expr="//field[@name='dst_model_id']" position="replace"/>
                <xpath expr="//filter[@name='dst_model']" position="replace">
                    <filter name="instance" string="Instance" domain="[]" context="{'group_by':'int_instance_id'}" />
                </xpath>

                <xpath expr="//field[@name='name']" position="after">
                    <field name="mail_alias_id" />
                    <filter name="mail_forwarding" string="Allow Mail Forwarding"
                        domain="[('mail_forwarding','=',True)]" />
                    <field name="int_instance_id"/>
                    <filter name="expired" string="Expired"
                        context="{'invisible_expire_date': False}"
                        domain="[('active','=',False)]" help="Expired Coordinates" />
                    <filter name="all" string="All"
                        context="{'invisible_expire_date': False}"
                        domain="['|', ('active', '=', True), ('active', '!=', True)]" help="All Coordinates, expired or not" />
                </xpath>
            </field>
        </record>
        <record id="mass_mailing_distribution_list.distribution_list_search" model="ir.ui.view">
            <field name="groups_id" eval="[(6, 0, [ref('settings_improvement.unused_features')]),
                                          ]"/>
        </record>

        <!-- TREE -->
        <record id="distribution_list_tree" model="ir.ui.view">
            <field name="name">distribution.list.tree (mozaik_communication)</field>
            <field name="model">distribution.list</field>
            <field name="inherit_id" ref="distribution_list.distribution_list_tree" />
            <field name="arch" type="xml">
                <xpath expr="//field[@name='dst_model_id']" position="replace">
                    <field name="dst_model_id" invisible="1"/>
                    <field name="newsletter" invisible="1"/>
                    <field name="int_instance_id"/>
                    <field name="active" invisible="1"/>
                </xpath>

                <!-- No more mass mailing but mass function in our case -->
                <xpath expr="//button[@name='mass_mailing']" position="replace">
                    <button name="%(distribution_list_mass_function_action)d" type="action" icon="terp-partner"
                            string="Mass Action" attrs="{'invisible':[('active', '=', False)]}"
                            groups="mozaik_base.mozaik_res_groups_user"/>
                    <field name="expire_date"
                           invisible="context.get('invisible_expire_date', True)" />
                </xpath>

                <xpath expr="//button[@name='get_action_from_domains']" position="replace">
                    <button name="get_action_from_domains"
                            attrs="{'invisible':[('active', '=', False)]}"
                            string="See Distribution List Result" type="object" icon="gtk-redo"
                            groups="mozaik_base.res_groups_base" />
                </xpath>

            </field>
        </record>
        <record id="mass_mailing_distribution_list.distribution_list_tree" model="ir.ui.view">
            <field name="groups_id" eval="[(6, 0, [ref('settings_improvement.unused_features')]),
                                          ]"/>
        </record>

        <!-- FORM -->
        <record id="distribution_list_form" model="ir.ui.view">
            <field name="name">distribution.list.form (mozaik_communication)</field>
            <field name="model">distribution.list</field>
            <field name="inherit_id" ref="mass_mailing_distribution_list.distribution_list_form" />
            <field name="arch" type="xml">

                <!-- Rebuild header -->
                <xpath expr="//header" position="replace">
                    <header>
                        <div attrs="{'invisible': ['|',('id','=',False),('active','=',False)]}"
                             invisible="context.get('popup')"
                             groups="mozaik_base.mozaik_res_groups_user">
                            <button name="action_invalidate" string="Invalidate" type="object"
                                    confirm="Invalidate Distribution List: proceed anyway?" />
                        </div>
                    </header>
                </xpath>

                <xpath expr="//group[@name='info']" position="replace">
                    <group attrs="{'invisible': [('newsletter', '=', False)]}">
                        <field name="public" />
                    </group>
{'fraction_non_alphanumeric': 0.1574818401937046, 'fraction_numerical': 0.0021307506053268766, 'mean_word_length': 1.8128575320076274, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 2, '>': 153, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5758084', 'n_tokens_mistral': 2781, 'n_tokens_neox': 2621, 'n_words': 431}