bzr revid: apa@tinyerp.com-20120328065136-lf3eczvgtiyr0hb7
This commit is contained in:
Amit Patel (OpenERP) 2012-03-28 12:21:36 +05:30
parent 3de22759aa
commit 0b24e4c532
3 changed files with 9 additions and 8 deletions

View File

@ -206,9 +206,9 @@
<a type="edit"><img class="oe_topbar_avatar" data-default-src="/web/static/src/img/topbar-avatar.png" src="/web/static/src/img/topbar-avatar.png"/></a>
</t>
</td>
<td align="right" valign="bottom">
<td align="right" valign="bottom" class="tasks">
<t t-if="record.task.raw_value">
<button name="open_tasks" class="oe_project_buttons" type="object"><img src="/project/static/src/img/tasks.png" width="20" height="20" align="top"/></button>(<field name="open_task"/>)
<button name="open_tasks" class="oe_project_buttons" type="object"><img src="/project/static/src/img/tasks.png" width="20" height="20" align="top"/></button>
</t>
</td>
</tr>

View File

@ -53,7 +53,7 @@
view_mode="tree,form,calendar,graph"
view_type="form"/>
<menuitem name="Issues" id="menu_project_issue_track" parent="base.menu_aftersale"
<menuitem name="Issues" id="menu_project_issue_track"
action="project_issue_categ_act0" sequence="15"/>
</data>
</openerp>

View File

@ -386,16 +386,17 @@
<field name="type">kanban</field>
<field name="inherit_id" ref="project.view_project_kanban"/>
<field name="arch" type="xml">
<xpath expr="//field/[@name='tasks']" position="after">
<field name="task" position="after">
<field name="issues"/>
</xpath>
</field>
<xpath expr="//td[@class='tasks']" position="replace">
<td class="issues" align="right">
<button name="open_tasks" class="oe_project_buttons" type="object"><img src="/project/static/src/img/tasks.png" width="20" height="20" align="top"/></button>()
<button name="open_tasks" class="oe_project_buttons" type="object"><img src="/project/static/src/img/tasks.png" width="20" height="20" align="top"/></button>
<t t-if="record.issues.raw_value == 1">
<button name="open_issues" class="oe_project_buttons" type="object"><img src="/project/static/src/img/bug.png" width="18" height="18" align="top"/><i>(<field name="open_issues"/>)</i></button>
<button name="open_issues" class="oe_project_buttons" type="object"><img src="/project/static/src/img/bug.png" width="18" height="18" align="top"/></button>
</t>
</td>
</xpath>
</field>