From 8ad111af910ac8d78ef023e0dcdf86fe2b61bd90 Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Thu, 29 Nov 2012 14:09:22 +0530 Subject: [PATCH] [IMP]Improved code for Production Status field should show Draft before saving. bzr revid: psa@tinyerp.com-20121129083922-ptdosthtbrilfunj --- addons/mrp_operations/mrp_operations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mrp_operations/mrp_operations.py b/addons/mrp_operations/mrp_operations.py index 4bca93d260f..ef24f6c187f 100644 --- a/addons/mrp_operations/mrp_operations.py +++ b/addons/mrp_operations/mrp_operations.py @@ -98,7 +98,8 @@ class mrp_production_workcenter_line(osv.osv): _defaults = { 'state': lambda *a: 'draft', - 'delay': lambda *a: 0.0 + 'delay': lambda *a: 0.0, + 'production_state': 'draft' } def modify_production_order_state(self, cr, uid, ids, action):