[IMP]improve

bzr revid: sgo@tinyerp.com-20120404090114-qhq64kye343ahw7r
This commit is contained in:
Sanjay Gohel (Open ERP) 2012-04-04 14:31:14 +05:30
parent 1b4a197ea1
commit 27dd8054fa
4 changed files with 7 additions and 4 deletions

View File

@ -173,6 +173,7 @@
<field name="task"/>
<field name="user_id"/>
<field name="date"/>
<field name="open_task"/>
<templates>
<t t-name="kanban-box">
<script type="text/javascript">
@ -201,7 +202,7 @@
<h4 id="list" height="10px">
<a>
<t t-if="record.task.raw_value">
<button name="open_tasks" class="oe_project_buttons" type="object"><field name="open_task"/> Tasks</button>
<button name="open_tasks" class="oe_project_buttons" type="object"><t t-esc="record.open_task.value" t-if="record.open_task.value &lt;= 1"> Task,</t><t t-esc="record.open_task.value" t-if="record.open_task.value > 1"> Tasks,</t></button>
</t>
</a>
</h4>

View File

@ -392,7 +392,7 @@
<xpath expr="//h4[@id='list']" position="inside">
<a>
<t t-if="record.issues.raw_value">
<button name="open_issues" class="oe_project_buttons" type="object">, <field name="total_issues"/> Issues</button>
<button name="open_issues" class="oe_project_buttons" type="object"><t t-esc="record.total_issues.value" t-if="record.total_issues.value &lt;= 1"> Issue,</t><t t-esc="record.total_issues.value" t-if="record.total_issues.value > 1"> Issues,</t></button>
</t>
</a>
</xpath>

View File

@ -118,11 +118,12 @@
<field name="arch" type="xml">
<field name="task" position="after">
<field name="phases"/>
<field name="open_phases"/>
</field>
<xpath expr="//h4[@id='list']" position="inside">
<a>
<t t-if="record.phases.raw_value">
<button name="open_phase" class="oe_project_buttons" type="object">, <field name="open_phases"/> Phases</button>
<button name="open_phase" class="oe_project_buttons" type="object"><t t-esc="record.open_phases.value" t-if="record.open_phases.value &lt;= 1"> Phase,</t><t t-esc="record.open_phases.value" t-if="record.open_phases.value > 1"> Phases,</t></button>
</t>
</a>
</xpath>

View File

@ -33,12 +33,13 @@
<field name="arch" type="xml">
<field name="task" position="after">
<field name="timesheets"/>
<field name="total_timesheet"/>
<field name="currency_id"/>
</field>
<xpath expr="//h4[@id='list']" position="inside">
<a>
<t t-if="record.timesheets.raw_value">
<button name="open_timesheets" class="oe_project_buttons" type="object">,<field name="total_timesheet"/> Timesheet</button>
<button name="open_timesheets" class="oe_project_buttons" type="object"><t t-esc="record.total_timesheet.value" t-if="record.total_timesheet.value &lt;= 1"> Timesheet,</t><t t-esc="record.total_timesheet.value" t-if="record.total_timesheet.value > 1"> Timesheets,</t></button>
</t>
</a>
</xpath>