[FIX] sale : Show SO with archived customer (reimplementation)
This reverts commit f22364c32ac1438ededd611578b64a69186d7c9c.
- go to a partner
- click on the button "Sale"
- Create a new order
--> Issue you see all product archived (and all the python logique run
with active_test = False)
Since the original issue would be reintroduced, this commit apply the
active_test:false only if the search field partner_id is used.
closes #83600
closes odoo/odoo#83669
X-original-commit: 825bb5f770f3abccadd3db3c4a57b25c3d9c35ed
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Co-authored-by: Nicolas Lempereur <nle@odoo>
This commit is contained in:
committed by
Nicolas Lempereur
co-authored by
Nicolas Lempereur
parent
5ebd6acb0a
commit
ade02c9b73
@@ -5,7 +5,7 @@
|
||||
<field name="name">Quotations and Sales</field>
|
||||
<field name="res_model">sale.order</field>
|
||||
<field name="view_mode">tree,form,graph</field>
|
||||
<field name="context">{'search_default_partner_id': active_id, 'default_partner_id': active_id, 'active_test': False}</field>
|
||||
<field name="context">{'search_default_partner_id': active_id, 'default_partner_id': active_id}</field>
|
||||
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
|
||||
@@ -653,7 +653,7 @@
|
||||
<search string="Search Sales Order">
|
||||
<field name="name" string="Order"
|
||||
filter_domain="['|', '|', ('name', 'ilike', self), ('client_order_ref', 'ilike', self), ('partner_id', 'child_of', self)]"/>
|
||||
<field name="partner_id" operator="child_of"/>
|
||||
<field name="partner_id" operator="child_of" context="{'active_test': False}"/>
|
||||
<field name="user_id"/>
|
||||
<field name="team_id" string="Sales Team"/>
|
||||
<field name="order_line" string="Product" filter_domain="[('order_line.product_id', 'ilike', self)]"/>
|
||||
|
||||
Reference in New Issue
Block a user