[IMP] sale_order_dates: requested date is readonly when order state is not draft.

bzr revid: ls@numerigraphe.fr-20111214154317-05xy0q2np7cqrpg0
This commit is contained in:
Numerigraphe - Lionel Sausin 2011-12-14 16:43:17 +01:00
parent 0e12b870f7
commit 0b4bb899ce
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ class sale_order_dates(osv.osv):
"a date that you can promise to the customer, based on the "
"Product Lead Times."),
'requested_date': fields.date('Requested Date',
readonly=True, states={'draft': [('readonly', False)]},
help="Date by which the customer has requested the items to be "
"delivered.\n"
"When this Order gets confirmed, the Delivery Order's "