diff options
| author | Yannick Tivisse <yti@odoo.com> | 2015-03-30 14:47:42 +0200 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2015-03-31 13:45:11 +0200 |
| commit | 68f5187fecdf5f4cd9ebdea27a7193da447d41dd (patch) | |
| tree | e6c8e566b9c7056319d2a42e34f2c24e5452b8db | |
| parent | 6cbf149ec34fdcac3d392a60337b6d08ef34c69b (diff) | |
[IMP] stock: add date_done on stock.picking.form
| -rw-r--r-- | addons/stock/stock.py | 2 | ||||
| -rw-r--r-- | 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 @@ <group> <field name="date"/> <field name="min_date"/> + <field name="date_done"/> <field name="origin" placeholder="e.g. PO0032" class="oe_inline"/> <label for="owner_id" groups="stock.group_tracking_owner"/> <div groups="stock.group_tracking_owner"> @@ -731,7 +732,6 @@ </group> <group> <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/> - <field name="date_done" groups="base.group_no_one"/> <field name="group_id"/> <field name="priority"/> </group> |
