[FIX] sale_crm: quotes count
- Create a SO from an opportunity, keep the status draft => the 'Quote(s)' number is 1 on the opportunity - Confirm the SO The 'Quote(s)' number is 0 on the opportunity, but when clicking on the stat button 1 quote is displayed. The `search_default_draft` (and the `search_default_sales` of the Orders stat button) are not working since the action doesn't use the appropriate search view. opw-1888442
This commit is contained in:
committed by
Nicolas Martinelli
parent
e764739d0d
commit
695050dd10
@@ -25,7 +25,7 @@
|
||||
<div name="button_box" position="inside">
|
||||
<button class="oe_stat_button" type="action"
|
||||
name="%(sale_action_quotations)d" icon="fa-pencil-square-o"
|
||||
context="{'default_partner_id': partner_id, 'search_default_draft': 1}">
|
||||
context="{'default_partner_id': partner_id, 'search_default_draft': 1, 'search_default_sent': 1}">
|
||||
<div class="o_stat_info">
|
||||
<field name="sale_number" class="o_stat_value"/>
|
||||
<span class="o_stat_text"> Quote(s) </span>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<record id="sale_action_quotations" model="ir.actions.act_window">
|
||||
<field name="name">Quotations</field>
|
||||
<field name="res_model">sale.order</field>
|
||||
<field name="search_view_id" ref="sale.sale_order_view_search_inherit_quotation"/>
|
||||
<field name="domain">[('opportunity_id', '=', active_id)]</field>
|
||||
<field name="context">{'search_default_opportunity_id': [active_id], 'default_opportunity_id': active_id}</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user