From 3b1fbe5abc068db42fee06bdb7ffa069f756c39c Mon Sep 17 00:00:00 2001 From: Haresh Shyara Date: Thu, 2 Nov 2017 10:44:44 +0530 Subject: [PATCH] [IMP] stock_landed_costs: Set type=service for new landed cost products Purpose ======= At the time of creating a Landed Cost , the product type should be 'Service' by default --- addons/stock_landed_costs/views/stock_landed_cost_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock_landed_costs/views/stock_landed_cost_views.xml b/addons/stock_landed_costs/views/stock_landed_cost_views.xml index 194781b32f3..6bd010bc991 100644 --- a/addons/stock_landed_costs/views/stock_landed_cost_views.xml +++ b/addons/stock_landed_costs/views/stock_landed_cost_views.xml @@ -54,7 +54,7 @@ + context="{'default_landed_cost_ok': True, 'default_type': 'service', 'form_view_ref':'stock_landed_costs.view_stock_landed_cost_type_form'}"/> @@ -215,7 +215,7 @@ [('landed_cost_ok','=',True)] form tree,form - {'default_landed_cost_ok': True} + {'default_landed_cost_ok': True, 'default_type': 'service'}