bzr revid: apa@tinyerp.com-20120404091204-xynqfgk6e1xeirxs
This commit is contained in:
Amit Patel (OpenERP)
2012-04-04 14:42:04 +05:30
4 changed files with 7 additions and 4 deletions
+2 -1
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">
<div class="project_vignettes">
@@ -195,7 +196,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>
+1 -1
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>
@@ -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>
@@ -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>