[IMP] opportunity view form, two buttons

This commit is contained in:
Fabien Pinckaers
2015-06-11 23:07:52 +02:00
parent 9f000449dc
commit f9735c1b78
+7 -7
View File
@@ -33,14 +33,14 @@
<button class="oe_inline oe_stat_button" type="action"
name="%(sale_action_quotations)d" icon="stat_button_icon fa fa-usd"
context="{'search_default_partner_id': partner_id, 'default_partner_id': partner_id}">
<field name="sale_number" widget="statinfo" string="Quotes"/>
</button>
<button class="oe_inline oe_stat_button" type="action" attrs="{'invisible': [('sale_amount_total', '=', 0)]}"
name="%(sale_action_quotations)d" icon="stat_button_icon fa fa-usd"
context="{'search_default_partner_id': partner_id, 'default_partner_id': partner_id}">
<div>
<strong><field name="sale_number" class="oe_inline"/></strong>
<span attrs="{'invisible': [('sale_number', '&lt;', 2)]}"> Quotes</span>
<span attrs="{'invisible': [('sale_number', '&gt;', 1)]}"> Quote</span>
<br/>
<strong attrs="{'invisible': [('sale_amount_total', '=', 0)]}">
<field name="sale_amount_total" class="oe_inline" widget="monetary" options="{'currency_field': 'company_currency'}"/>
</strong>
<strong><field name="sale_amount_total" class="oe_inline" widget="monetary" options="{'currency_field': 'company_currency'}"/></strong>
<div><field name="sale_number" class="oe_inline"/> Orders</div>
</div>
</button>
</xpath>