Skip to content

Commit

Permalink
[IMP] stock: scheduled date as current datetime on return.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dat-odoo authored and Whenrow committed May 22, 2018
1 parent 7eff8d3 commit 4699f3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/stock/wizard/stock_picking_return.py
Expand Up @@ -78,6 +78,7 @@ def _prepare_move_default_values(self, return_line, new_picking):
'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,
Expand Down

0 comments on commit 4699f3c

Please sign in to comment.