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

        <!-- Sale Portal Access Rules -->
        <record id="portal_sale_order_user_rule" model="ir.rule">
            <field name="name">Portal Personal Quotations/Sales Orders</field>
            <field name="model_id" ref="sale.model_sale_order"/>
            <field name="domain_force">[('message_follower_ids','in',user.partner_id.id)]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_stock_picking_user_rule" model="ir.rule">
            <field name="name">Portal Personal Delivery Orders</field>
            <field name="model_id" ref="stock.model_stock_picking"/>
            <field name="domain_force">[('message_follower_ids','in',user.partner_id.id)]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_stock_picking_user_rule" model="ir.rule">
            <field name="name">Portal Personal Delivery Orders Out</field>
            <field name="model_id" ref="stock.model_stock_picking_out"/>
            <field name="domain_force">[('message_follower_ids','in',user.partner_id.id)]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_account_invoice_user_rule" model="ir.rule">
            <field name="name">Portal Personal Account Invoices</field>
            <field name="model_id" ref="account.model_account_invoice"/>
            <field name="domain_force">[('message_follower_ids','in',user.partner_id.id)]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_personal_payment" model="ir.rule">
            <field name="name">Portal Personal Payments</field>
            <field name="model_id" ref="account_voucher.model_account_voucher"/>
            <field name="domain_force">[('message_follower_ids','in',user.partner_id.id)]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_personal_contact" model="ir.rule">
            <field name="name">Portal Personal Contacts</field>
            <field name="model_id" ref="base.model_res_partner"/>
            <field name="domain_force">[('message_follower_ids','in',user.partner_id.id)]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

    </data>
</openerp><commit_msg>[FIX]: Fix portal message_follower_ids domain problem<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">

        <!-- Sale Portal Access Rules -->
        <record id="portal_sale_order_user_rule" model="ir.rule">
            <field name="name">Portal Personal Quotations/Sales Orders</field>
            <field name="model_id" ref="sale.model_sale_order"/>
            <field name="domain_force">[('message_follower_ids','in',[user.partner_id.id])]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_stock_picking_user_rule" model="ir.rule">
            <field name="name">Portal Personal Delivery Orders</field>
            <field name="model_id" ref="stock.model_stock_picking"/>
            <field name="domain_force">[('message_follower_ids','in',[user.partner_id.id])]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_stock_picking_user_rule" model="ir.rule">
            <field name="name">Portal Personal Delivery Orders Out</field>
            <field name="model_id" ref="stock.model_stock_picking_out"/>
            <field name="domain_force">[('message_follower_ids','in',[user.partner_id.id])]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_account_invoice_user_rule" model="ir.rule">
            <field name="name">Portal Personal Account Invoices</field>
            <field name="model_id" ref="account.model_account_invoice"/>
            <field name="domain_force">[('message_follower_ids','in',[user.partner_id.id])]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_personal_payment" model="ir.rule">
            <field name="name">Portal Personal Payments</field>
            <field name="model_id" ref="account_voucher.model_account_voucher"/>
            <field name="domain_force">[('message_follower_ids','in',[user.partner_id.id])]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_personal_contact" model="ir.rule">
            <field name="name">Portal Personal Contacts</field>
            <field name="model_id" ref="base.model_res_partner"/>
            <field name="domain_force">[('message_follower_ids','in',[user.partner_id.id])]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

    </data>
</openerp>
{'fraction_non_alphanumeric': 0.17596153846153847, 'fraction_numerical': 0.0038461538461538464, 'mean_word_length': 3.3414023372287147, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 2, '>': 111, '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': '4618778', 'n_tokens_mistral': 1639, 'n_tokens_neox': 1628, 'n_words': 242}