<commit_before><?xml version="1.0" ?>
<openerp>
    <data noupdate="1">

        <record id="property_rule_expense" model="ir.rule">
            <field name="name">Employee Expense</field>
            <field model="ir.model" name="model_id" ref="model_hr_expense_expense"/>
            <field name="domain_force">[('employee_id.user_id','=',user.id)]</field>
            <field name="groups" eval="[(4,ref('base.group_hr_user'))]"/>
        </record>
        <record id="property_rule_expense_manager" model="ir.rule">
            <field name="name">Manager Expense</field>
            <field model="ir.model" name="model_id" ref="model_hr_expense_expense"/>
            <field name="domain_force">[(1,'=',1)]</field>
            <field name="groups" eval="[(4,ref('base.group_hr_manager'))]"/>
        </record>
        <record id="property_rule_expense_employee" model="ir.rule">
            <field name="name">Employee Expense</field>
            <field model="ir.model" name="model_id" ref="model_hr_expense_expense"/>
            <field name="domain_force">['|', ('employee_id.user_id','=',user.id), ('department_id.manager_id.user_id','=',user.id)]</field>
            <field name="groups" eval="[(4,ref('base.group_user'))]"/>
        </record>

    </data>
</openerp>
<commit_msg>[IMP] hr_expense: small modification in access rule domain<commit_after><?xml version="1.0" ?>
<openerp>
    <data noupdate="1">

        <record id="property_rule_expense" model="ir.rule">
            <field name="name">Employee Expense</field>
            <field model="ir.model" name="model_id" ref="model_hr_expense_expense"/>
            <field name="domain_force">[('employee_id.user_id','=',user.id)]</field>
            <field name="groups" eval="[(4,ref('base.group_hr_user'))]"/>
        </record>
        <record id="property_rule_expense_manager" model="ir.rule">
            <field name="name">Manager Expense</field>
            <field model="ir.model" name="model_id" ref="model_hr_expense_expense"/>
            <field name="domain_force">[(1,'=',1)]</field>
            <field name="groups" eval="[(4,ref('base.group_hr_manager'))]"/>
        </record>
        <record id="property_rule_expense_employee" model="ir.rule">
            <field name="name">Employee Expense</field>
            <field model="ir.model" name="model_id" ref="model_hr_expense_expense"/>
            <field name="domain_force">[('employee_id.user_id','=',user.id)]</field>
            <field name="groups" eval="[(4,ref('base.group_user'))]"/>
        </record>

    </data>
</openerp>

{'fraction_non_alphanumeric': 0.1940763834762276, 'fraction_numerical': 0.006235385814497272, 'mean_word_length': 3.3434856175972927, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 2, '>': 61, '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': '656542', 'n_tokens_mistral': 845, 'n_tokens_neox': 830, 'n_words': 119}