From 674fc66a46c446bef9969f458ca7dded023bef1f Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Fri, 6 Mar 2009 10:35:35 +0100 Subject: [PATCH] [FIX] Add the required flag and set the value to True [IMP] Add a new "note" field in the object and in the view bzr revid: stephane@tinyerp.com-20090306093535-6vdv3v30us1kd197 --- addons/mrp/mrp.py | 3 ++- addons/mrp/mrp_view.xml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 0d2a9b805ae..f6d4a685387 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -797,7 +797,8 @@ class mrp_procurement(osv.osv): ('cancel','Cancel'), ('ready','Ready'), ('done','Done'), - ('waiting','Waiting')], 'Status') + ('waiting','Waiting')], 'Status', required=True), + 'note' : fields.text('Note'), } _defaults = { 'state': lambda *a: 'draft', diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index e977758e1d4..2093c51396d 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -711,6 +711,10 @@ + + + +