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

        <record id="action_my_expense" model="ir.actions.act_window">
            <field name="name">My Expenses</field>
            <field name="res_model">hr.expense.expense</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','in',('confirm', 'accepted')),('user_id','=',uid)]</field>
            <field name="context">{'default_user_id': uid}</field>
            <field name="view_id" ref="hr_expense.view_editable_expenses_tree"/>
        </record>

        <record id="board_hr_expense_form" model="ir.ui.view">
            <field name="name">board.hr.expense.form</field>
            <field name="model">board.board</field>
            <field name="inherit_id" ref="hr.board_hr_form"/>
            <field name="arch" type="xml">
                <xpath expr="/form/board/column[1]" position="inside">
                     <action name="%(action_my_expense)d" string="My Expenses"/>
                </xpath>
            </field>
        </record>

    </data>
</openerp>
