refactor: get rid of move_recs

This commit is contained in:
Leonardo Pistone
2014-11-26 15:45:03 +01:00
parent 978801685e
commit d3c0f57a5d

View File

@@ -122,10 +122,9 @@ class StockReservation(models.Model):
The reservation is done using the default UOM of the product.
A date until which the product is reserved can be specified.
"""
move_recs = self.move_id
move_recs.date_expected = fields.Datetime.now()
move_recs.action_confirm()
move_recs.picking_id.action_assign()
self.date_expected = fields.Datetime.now()
self.move_id.action_confirm()
self.move_id.picking_id.action_assign()
return True
@api.multi