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

        <record model="ir.ui.view" id="project_issue_board_tree_view">
            <field name="name">Project Issue Board Tree</field>
            <field name="model">project.issue</field>
            <field name="arch" type="xml">
                <tree string="Issue Tracker Tree" colors="black:state=='open';blue:state=='pending';grey:state in ('cancel', 'done')">
                    <field name="id"/>
                    <field name="create_date"/>
                    <field name="name"/>
                    <field name="partner_id"/>
                    <field name="project_id" />
                    <field name="priority" string="Priority"/>
                    <field name="version_id" widget="selection"/>
                    <field name="progress" widget="progressbar" attrs="{'invisible':[('task_id','=',False)]}"/>
                    <field name="stage_id" widget="selection" readonly="1"/>
                    <field name="state" invisible="1"/>
                    <field name="categ_ids" invisible="1"/>
                    <field name="task_id" invisible="1"/>
                </tree>
            </field>
        </record>

        <record id="action_view_my_project_issue_tree" model="ir.actions.act_window">
            <field name="name">My Project Issues</field>
            <field name="res_model">project.issue</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="domain">[('state','not in',('cancel','done')),('user_id','=',uid)]</field>
           <field name="view_id" ref="project_issue_board_tree_view"/>
        </record>

        <record id="board_my_project_issue_form" model="ir.ui.view">
            <field name="name">board.my.project.issue.form.inherit</field>
            <field name="model">board.board</field>
            <field name="inherit_id" ref="project.board_project_form"/>
            <field name="arch" type="xml">
                <xpath expr="/form/board/column/action[@string='My Tasks']" position="after">
                    <action name="%(action_view_my_project_issue_tree)d" string="My Issues"/>
                </xpath>
            </field>
        </record>
    </data>
</openerp>
