<?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_statement_operation_template_company_rule" model="ir.rule">
    <field name="name">Account Statement Operation Template Multi-company</field>
    <field name="model_id" ref="account.model_account_statement_operation_template"/>
    <field name="global" eval="True"/>
    <field name="domain_force">['|', ('company_id', '=', False), ('company_id', '=', user.company_id.id)]</field>
    <!-- We need ('company_id', '=', False) even if company_id is a required field on account.account in order to avoid access rights issues when a regular user creates a new account.statement.operation.template -->
</record>

</data>
</openerp>
