<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2015 Akretion (http://www.akretion.com/)
    @author: Alexis de Lattre <alexis.delattre@akretion.com>
    The licence is in the file __openerp__.py
-->


<openerp>
<data noupdate="1">

<record id="account_banking_mandate_rule" model="ir.rule">
    <field name="name">Banking Mandate multi-company</field>
    <field name="model_id" ref="model_account_banking_mandate"/>
    <field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
    <field name="perm_read" eval="True"/>
    <field name="perm_write" eval="False"/>
    <field name="perm_unlink" eval="True"/>
    <field name="perm_create" eval="True"/>
</record>

</data>
</openerp>