[IMP] stock: add scheduled date on picking.

When a picking is in 'Done' state, we add the effective date on the form in
addition to the effective date. The user can know the date when the picking was effectively
made.
This commit is contained in:
Darshil Trivedi
2018-05-22 15:00:30 +02:00
committed by William Henrotin
parent e7ecdb8c46
commit 7eff8d39a7
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ class Picking(models.Model):
default=fields.Datetime.now, index=True, track_visibility='onchange',
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="Completion Date of Transfer")
date_done = fields.Datetime('Date of Transfer', copy=False, readonly=True, help="Date at which the transfer has been processed or cancelled.")
location_id = fields.Many2one(
'stock.location', "Source Location",
@@ -247,6 +247,7 @@
</group>
<group>
<field name="scheduled_date" attrs="{'readonly': [('id', '=', False)], 'required': [('id', '!=', False)]}"/>
<field name="date_done" string="Effective Date" attrs="{'invisible': [('state', '!=', 'done')]}"/>
<field name="origin" placeholder="e.g. PO0032"/>
<field name="owner_id" groups="stock.group_tracking_owner"/>
<div groups="stock.group_tracking_owner" colspan="2" col="2">