From cec4e34146d17cfe61999618152ec2cd218bb05e Mon Sep 17 00:00:00 2001 From: Jamin Shah Date: Thu, 21 May 2015 17:55:00 +0530 Subject: [PATCH] [IMP] sale_crm, website_sale : onboarding improvements sale_crm : prevent the creation of SO from lead form view (avoid bypassing process) website_quote : "View Quotation" on SO form view should not be a state button, so it is now replaced by a link near the field --- addons/sale_crm/sale_crm_view.xml | 26 +++++++++---------- .../views/website_quotation_backend.xml | 15 +++++------ 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/addons/sale_crm/sale_crm_view.xml b/addons/sale_crm/sale_crm_view.xml index 17dd923784c..77885421d2f 100644 --- a/addons/sale_crm/sale_crm_view.xml +++ b/addons/sale_crm/sale_crm_view.xml @@ -2,20 +2,20 @@ - + + Quotation + sale.order + form,tree,graph + [('opportunity_id', '=', active_id)] + {'search_default_opportunity_id': active_id, 'default_opportunity_id': active_id} + - + + Quotations + sale.order + [('opportunity_id', '=', active_id)] + {'search_default_opportunity_id': [active_id], 'default_opportunity_id': active_id} + CRM - Opportunities - Quote Inherit diff --git a/addons/website_quote/views/website_quotation_backend.xml b/addons/website_quote/views/website_quotation_backend.xml index abb4d5a531e..4da68a453ac 100644 --- a/addons/website_quote/views/website_quotation_backend.xml +++ b/addons/website_quote/views/website_quotation_backend.xml @@ -17,13 +17,6 @@ - - +