From 68f5187fecdf5f4cd9ebdea27a7193da447d41dd Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Mon, 30 Mar 2015 14:47:42 +0200 Subject: [PATCH] [IMP] stock: add date_done on stock.picking.form --- addons/stock/stock.py | 2 +- addons/stock/stock_view.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 84d8615af7c..97eba194a84 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -826,7 +826,7 @@ class stock_picking(osv.osv): 'max_date': fields.function(get_min_max_date, multi="min_max_date", store={'stock.move': (_get_pickings, ['date_expected', 'picking_id'], 20)}, type='datetime', string='Max. Expected Date', select=2, help="Scheduled time for the last part of the shipment to be processed"), 'date': fields.datetime('Creation Date', help="Creation Date, usually the time of the order", select=True, states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}, track_visibility='onchange'), - 'date_done': fields.datetime('Date of Transfer', help="Date of Completion", states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}, copy=False), + 'date_done': fields.datetime('Date of Transfer', help="Completion Date of Transfer", readonly=True, copy=False), 'move_lines': fields.one2many('stock.move', 'picking_id', 'Internal Moves', states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}, copy=True), 'quant_reserved_exist': fields.function(_get_quant_reserved_exist, type='boolean', string='Quant already reserved ?', help='technical field used to know if there is already at least one quant reserved on moves of a given picking'), 'partner_id': fields.many2one('res.partner', 'Partner', states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}), diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index d8678ccd6a9..6f828f4e266 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -684,6 +684,7 @@ +