From dd4a7213b0c73f4976a809f8531e937f64e66471 Mon Sep 17 00:00:00 2001 From: Commandant Custo Date: Sat, 16 Aug 2014 10:55:07 -0700 Subject: [PATCH] [IMP] sale: Allow to set a default value on the SO based on the Sales Team As the different sales teams might have different sales workflows, this will allow the user to define the shipping policy based on the sales team. This will be particularly useful to differentiate the workflows of e-commerce sales and usual sales. --- addons/sale/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 34c5dbabb32..20aea2d90c0 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -235,7 +235,7 @@ class sale_order(osv.osv): 'payment_term': fields.many2one('account.payment.term', 'Payment Term'), 'fiscal_position': fields.many2one('account.fiscal.position', 'Fiscal Position'), 'company_id': fields.many2one('res.company', 'Company'), - 'section_id': fields.many2one('crm.case.section', 'Sales Team'), + 'section_id': fields.many2one('crm.case.section', 'Sales Team', change_default=True), 'procurement_group_id': fields.many2one('procurement.group', 'Procurement group', copy=False), }