[IMP] sale_crm: inherited opportunity form view: when

clicking on sales button, add a search + a default on the partner_id of the
opportunity, to directly filter and create quotations linked to the correct
partner.
This commit is contained in:
Thibault Delavallée
2015-02-19 11:01:58 +01:00
parent ef9b3a2388
commit 2334917ed3
+3 -1
View File
@@ -20,7 +20,9 @@
<button attrs="{'invisible': [('probability', '>', 0)]}" string="Convert to Quotation" name="%(action_crm_make_sale)d" type="action"/>
</xpath>
<xpath expr="//div[@name='buttons']" position="inside">
<button class="oe_inline oe_stat_button" type="action" name="%(sale_action_quotations)d" icon="stat_button_icon fa fa-usd">
<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}">
<div><strong><field name="sale_amount_total" widget="monetary"/></strong><br/>Sales</div>
</button>
</xpath>