[FIX] sale : Show SO with archived customer

Current behavior:
When archiving a customer contact, the SO linked to this customer where not shown after clicking sales smart button in company

Steps to reproduce:
1. App "Contacts": Have a company and a contact as child of this company.
2. App "Sale": Create a Sale Order for the contact of the company and confirm it.
3. App "Contacts": Archive the contact of the company and switch to the company.
4. App "Contacts": The Smart Button for sale orders says it has one sale order but if you click on it NO sale orders will be shown.

opw-2735060

closes odoo/odoo#82796

X-original-commit: f22364c32ac1438ededd611578b64a69186d7c9c
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Engels Robin (roen) <roen@odoo.com>
This commit is contained in:
roen-odoo
2022-01-17 12:17:20 +00:00
parent 9d36149ed7
commit a4d5999471
+1 -1
View File
@@ -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}</field>
<field name="context">{'search_default_partner_id': active_id, 'default_partner_id': active_id, 'active_test': False}</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">