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

    <!-- Groups - Make Deposits Preparer , Make Deposits Verifier -->

    <record id="group_make_deposits_preparer" model="res.groups">
      <field name="name">Make Deposits Preparer</field>
    </record>

    <record id="group_make_deposits_verifier" model="res.groups">
      <field name="name">Make Deposits Verifier</field>
    </record>

    <record id="account.group_account_user" model="res.groups">
      <field name="implied_ids" eval="[(4, ref('group_make_deposits_preparer'))]"/>
    </record>
    
    <record id="account.group_account_manager" model="res.groups">
      <field name="implied_ids" eval="[(4, ref('group_make_deposits_verifier'))]"/>
    </record>
    <!-- Security Rule for Deposit Tickets -->

    <record id="account_banking_make_deposits_comp_rule" model="ir.rule">
      <field name="name">Deposit Tickets</field>
      <field ref="model_deposit_ticket" name="model_id"/>
      <field eval="True" name="global"/>
      <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
    </record>

  </data>
</openerp>
