Amit Bhavsar (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-993947-amb into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
  Amit Parik (OpenERP) (amp-openerp)
Related bugs:
  Bug #993947 in OpenERP Addons: "MRP scheduled date shouble be visible only on 
New(draft) state"
  https://bugs.launchpad.net/openobject-addons/+bug/993947

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-993947-amb/+merge/104716

Hello,

Fixes the usability problem, schedule_date was visible in all state. But now 
it's visible only in "New" states.

Thanks!
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-993947-amb/+merge/104716
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-993947-amb.
=== modified file 'mrp/mrp.py'
--- mrp/mrp.py	2012-04-18 13:41:43 +0000
+++ mrp/mrp.py	2012-05-04 10:58:19 +0000
@@ -466,7 +466,7 @@
 
         'date_planned_end': fields.function(_production_date_end, type='date', string='Scheduled End Date'),
         'date_planned_date': fields.function(_production_date, type='date', string='Scheduled Date'),
-        'date_planned': fields.datetime('Scheduled date', required=True, select=1),
+        'date_planned': fields.datetime('Scheduled date', required=True, select=1, states={'draft':[('readonly',False)]}, readonly=True),
         'date_start': fields.datetime('Start Date', select=True),
         'date_finished': fields.datetime('End Date', select=True),
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to