[MERGE] [FIX] stock: display reception numbers on kanban view with sigular form in case of only one

lp bug: https://launchpad.net/bugs/1119202 fixed

bzr revid: mat@openerp.com-20131119161511-xu6fhzsit0poluff
This commit is contained in:
Martin Trigaux 2013-11-19 17:15:11 +01:00
commit a2a8dffdf7
1 changed files with 8 additions and 2 deletions

View File

@ -212,12 +212,18 @@
<field name="delivery_count"/>
</field>
<xpath expr="//div[@name='tags']" position="inside">
<a name="%(action_receive_move)d" type="action" t-if="record.reception_count.raw_value>0">
<a name="%(action_receive_move)d" type="action" t-if="record.reception_count.raw_value&gt;1">
<t t-esc="record.reception_count.value"/> Receptions
</a>
<a name="%(action_deliver_move)d" type="action" t-if="record.delivery_count.raw_value>0">
<a name="%(action_receive_move)d" type="action" t-if="record.reception_count.raw_value==1">
<t t-esc="record.reception_count.value"/> Reception
</a>
<a name="%(action_deliver_move)d" type="action" t-if="record.delivery_count.raw_value&gt;1">
<t t-esc="record.delivery_count.value"/> Deliveries
</a>
<a name="%(action_deliver_move)d" type="action" t-if="record.delivery_count.raw_value==1">
<t t-esc="record.delivery_count.value"/> Delivery
</a>
</xpath>
<ul position="inside">
<li t-if="record.type.raw_value != 'service'">On hand: <field name="qty_available"/> <field name="uom_id"/></li>