[IMP] purchase: partner kanban view (replace the Purchase link by a badge like the others)

This commit is contained in:
Martin Geubelle
2015-06-18 11:10:30 +02:00
parent 6b7ecc51b7
commit 9609fa64e0
+1 -4
View File
@@ -42,11 +42,8 @@
<field name="mobile" position="after">
<field name="purchase_order_count"/>
</field>
<xpath expr="//div[@class='oe_kanban_partner_links']" position="inside">
<a name="%(purchase.act_res_partner_2_purchase_order)d" type="action" t-if="record.purchase_order_count.value>0">
<t t-esc="record.purchase_order_count.value"/> Purchases
</a>
<span t-if="record.purchase_order_count.value>0" class="badge"><i class="fa fa-fw fa-shopping-cart"/><t t-esc="record.purchase_order_count.value"/></span>
</xpath>
</field>
</record>