[IMP] opportunity view form, two buttons
This commit is contained in:
@@ -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', '<', 2)]}"> Quotes</span>
|
||||
<span attrs="{'invisible': [('sale_number', '>', 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>
|
||||
|
||||
Reference in New Issue
Block a user