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

<openerp>
<data noupdate="1">

<record id="module_category_mass" model="ir.module.category">
    <field name="name">Mass</field>
    <field name="description">Manage masses</field>
    <field name="sequence">46</field>
</record>

<record id="group_mass_user" model="res.groups">
    <field name="name">User</field>
    <field name="category_id" ref="module_category_mass"/>
</record>

<record id="group_mass_manager" model="res.groups">
    <field name="name">Manager</field>
    <field name="category_id" ref="module_category_mass"/>
    <field name="implied_ids" eval="[(4, ref('group_mass_user'))]"/>
    <field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>

</data>
</openerp><commit_msg>Add ir.rule for multi-company for donation, tax receipts and mass.<commit_after><?xml version="1.0" encoding="utf-8"?>

<!--
    Copyright (C) 2014 Artisanat Monastique de Provence
                       (http://www.barroux.org)
    @author: <NAME> <<EMAIL>>
    The licence is in the file __openerp__.py
-->

<openerp>
<data noupdate="0">

<record id="module_category_mass" model="ir.module.category">
    <field name="name">Mass</field>
    <field name="description">Manage masses</field>
    <field name="sequence">46</field>
</record>

<record id="group_mass_user" model="res.groups">
    <field name="name">User</field>
    <field name="category_id" ref="module_category_mass"/>
</record>

<record id="group_mass_manager" model="res.groups">
    <field name="name">Manager</field>
    <field name="category_id" ref="module_category_mass"/>
    <field name="implied_ids" eval="[(4, ref('group_mass_user'))]"/>
    <field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>

</data>

<data noupdate="1">

<!-- Multi-company Rules -->
<record id="mass_request_company_rule" model="ir.rule">
    <field name="name">Mass Request Multi-company</field>
    <field name="model_id" ref="model_mass_request"/>
    <field name="global" eval="True"/>
    <field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
</record>

<record id="mass_request_transfer_company_rule" model="ir.rule">
    <field name="name">Mass Request Transfer Multi-company</field>
    <field name="model_id" ref="model_mass_request_transfer"/>
    <field name="global" eval="True"/>
    <field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
</record>

<record id="mass_line_company_rule" model="ir.rule">
    <field name="name">Mass Line Multi-company</field>
    <field name="model_id" ref="model_mass_line"/>
    <field name="global" eval="True"/>
    <field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
</record>

</data>
</openerp>
{'fraction_non_alphanumeric': 0.2057900244157656, 'fraction_numerical': 0.007324729682595047, 'mean_word_length': 5.373333333333333, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 2, '>': 84, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '6415177', 'n_tokens_mistral': 988, 'n_tokens_neox': 976, 'n_words': 185}