From 7b489ed42c00f42dea3be7d21208c57d396da630 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Mon, 5 Sep 2016 16:31:30 +0200 Subject: [PATCH] [IMP] sale: show complete SO view by default Instead of showing the columns delivered/invoiced qties on SOs by setting a special key in the view's context, let's do the opposite and hide them for a sepcial key instead. The rationale behind this decision is that when a user wants to see a SO from another place in the system, it is often a SO and not a quote (i.e. accessing from an invoice's chatter message, from a subscription, etc.). The default should then be to show these fields unless otherwise specified in the context (and not the opposite). --- addons/sale/views/res_partner_views.xml | 2 +- addons/sale/views/sale_views.xml | 28 ++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/addons/sale/views/res_partner_views.xml b/addons/sale/views/res_partner_views.xml index 634ed0abd96..09fb2897272 100644 --- a/addons/sale/views/res_partner_views.xml +++ b/addons/sale/views/res_partner_views.xml @@ -5,7 +5,7 @@ sale.order form tree,form,graph - {'search_default_partner_id': active_id, 'show_sale': True} + {'search_default_partner_id': active_id}

diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index a68a044db21..fab4316f6bf 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -153,8 +153,8 @@ attrs="{'invisible': ['|',('invoice_status', '!=', 'no'), ('state', '!=', 'sale')]}"/>