diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index d00395cc8f6..783523594b9 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -294,7 +294,7 @@ class Picking(models.Model): help="Is late or will be late depending on the deadline and scheduled date") date = fields.Datetime( 'Creation Date', - default=fields.Datetime.now, index=True, tracking=True, + default=fields.Datetime.now, tracking=True, states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}, help="Creation Date, usually the time of the order") date_done = fields.Datetime('Date of Transfer', copy=False, readonly=True, help="Date at which the transfer has been processed or cancelled.")