[IMP] stock: scheduled date as current datetime on return.
When a picking is returned, the scheduled date stay unchanged. This date can be in the past if the return is made at least one day after the transfer. This commit set the return day as scheduled date
This commit is contained in:
committed by
William Henrotin
parent
7eff8d39a7
commit
4699f3c2bf
@@ -78,6 +78,7 @@ class ReturnPicking(models.TransientModel):
|
||||
'product_uom': return_line.product_id.uom_id.id,
|
||||
'picking_id': new_picking.id,
|
||||
'state': 'draft',
|
||||
'date_expected': fields.Datetime.now(),
|
||||
'location_id': return_line.move_id.location_dest_id.id,
|
||||
'location_dest_id': self.location_id.id or return_line.move_id.location_id.id,
|
||||
'picking_type_id': new_picking.picking_type_id.id,
|
||||
|
||||
Reference in New Issue
Block a user