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

        <!-- RULES -->
        <record id="mail_group_public_and_joined" model="ir.rule">
            <field name="name">Mail.group: access only public and joined groups</field>
            <field name="model_id" ref="model_mail_group"/>
            <!-- This rule has to be improved for employee only groups -->
            <field name="domain_force">['|', '|', ('public', '=', 'public'), ('message_follower_ids', 'in', [user.partner_id.id]), '&amp;', ('public','=','groups'), ('group_public_id','in', [g.id for g in user.groups_id])]</field>
        </record>

        <record id="mail_followers_read_write_own" model="ir.rule"><commit_msg>[FIX] mail: users can now create private mail_group.<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <!-- RULES -->
        <record id="mail_group_public_and_joined" model="ir.rule">
            <field name="name">Mail.group: access only public and joined groups</field>
            <field name="model_id" ref="model_mail_group"/>
            <!-- This rule has to be improved for employee only groups -->
            <field name="domain_force">['|', '|', ('public', '=', 'public'), ('message_follower_ids', 'in', [user.partner_id.id]), '&amp;', ('public','=','groups'), ('group_public_id','in', [g.id for g in user.groups_id])]</field>
            <field name="perm_create" eval="False"/>
        </record>

        <record id="mail_followers_read_write_own" model="ir.rule">
{'fraction_non_alphanumeric': 0.19829842931937172, 'fraction_numerical': 0.003926701570680628, 'mean_word_length': 3.4063400576368874, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 2, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1771749', 'n_tokens_mistral': 488, 'n_tokens_neox': 480, 'n_words': 107}